Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions components/pango_windowing/src/display_wayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ static void pointer_handle_axis(void *data, struct wl_pointer */*wl_pointer*/, u
float dx = 0, dy = 0;

switch (axis) {
case REL_X: dy = v; break; // up, down
case REL_Y: dx = v; break; // left, right
case WL_POINTER_AXIS_VERTICAL_SCROLL: dy = -v; break; // up, down
case WL_POINTER_AXIS_HORIZONTAL_SCROLL: dx = v; break; // left, right
}

w->SpecialInputSignal(SpecialInputEvent({
Expand Down Expand Up @@ -972,7 +972,6 @@ WaylandWindow::WaylandWindow(const int w, const int h,

wl_surface_commit(wsurface);

wl_display_roundtrip(display->wdisplay);
wl_display_roundtrip(display->wdisplay);

// wait for the first configure event
Expand Down Expand Up @@ -1025,17 +1024,17 @@ void WaylandWindow::Move(const int /*x*/, const int /*y*/) { }

void WaylandWindow::Resize(const unsigned int /*w*/, const unsigned int /*h*/) { }

void WaylandWindow::ProcessEvents() { }
void WaylandWindow::ProcessEvents() {
wl_display_dispatch_pending(display->wdisplay);
}

void WaylandWindow::SwapBuffers() {
eglSwapBuffers(display->egl_display, egl_surface);

// draw all decoration elements
decoration->draw();

MakeCurrent();

wl_display_dispatch(display->wdisplay);
eglSwapBuffers(display->egl_display, egl_surface);
}


Expand Down
Loading