summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-28 05:10:52 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-03-28 05:10:52 +0200
commit43a9c70d8ca89387571b1bdc5794935dcfce719e (patch)
treebb69b131bcf5546402fc00739cfe85d5b7a93e3c /src/drivers
parent5a4e7caa54bab9da2061b0003bb546aa0da6ea1b (diff)
Wayland: fix regression in test/fullscreen
Commit e918d94 to fix issue #708 broke turning back from fullscreen state for borderless window, visible in test/fullscreen.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index f5be28ab9..b0a411342 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -711,6 +711,10 @@ static void handle_configure(struct libdecor_frame *frame,
}
if (!libdecor_configuration_get_window_state(configuration, &window_state))
window_state = LIBDECOR_WINDOW_STATE_NONE;
+ if ((window->state & LIBDECOR_WINDOW_STATE_FULLSCREEN) &&
+ !(window_state & LIBDECOR_WINDOW_STATE_FULLSCREEN) && !window->fl_win->border()) {
+ window->fl_win->redraw();
+ }
window->state = window_state;
// Weston, KDE and recent versions of Mutter, on purpose, don't set the