From 43a9c70d8ca89387571b1bdc5794935dcfce719e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 28 Mar 2023 05:10:52 +0200 Subject: 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. --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/drivers') 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 -- cgit v1.2.3