summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-02 18:05:36 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-02 18:05:36 +0200
commite239d00cadcef12b841b6f284ba18c93d247d7fe (patch)
treecea4dbc6a0b16c13259f95de10b08da64469770b /src/drivers
parent81f1ddad1d0f0111d4deb577d9fc9682cca0dc79 (diff)
Fix "Wayland: non-resizable windows are positioned in the wrong place" (#711)
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 48327e33e..9136950ed 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -667,6 +667,8 @@ static void surface_enter(void *data, struct wl_surface *wl_surface, struct wl_o
win_driver->is_a_rescale(true);
window->fl_win->size(window->fl_win->w(), window->fl_win->h());
win_driver->is_a_rescale(false);
+ } else if (window->buffer) {
+ Fl_Wayland_Graphics_Driver::buffer_commit(window, true);
}
if (window->fl_win->as_gl_window())
wl_surface_set_buffer_scale(window->wl_surface, output->wld_scale);