summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-09 08:23:09 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-09 08:23:09 +0200
commit1b0f21cc8fec9a933770a2ed6d7feafe91ee8333 (patch)
treeaebfc00f44da165e6bbce63a400ef9bd9b45d612 /src/drivers
parent7800c2f3c3195089932e9dbb62371c6408e1e5fe (diff)
Wayland: support going from borderless to bordered window.
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 8a5606752..928c5bb30 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -1284,7 +1284,12 @@ void Fl_Wayland_Window_Driver::use_border() {
pWindow->wait_for_expose(); // useful for border(0) just after show()
struct libdecor_frame *frame = fl_wl_xid(pWindow)->frame;
if (frame && Fl_Wayland_Screen_Driver::compositor != Fl_Wayland_Screen_Driver::KDE) {
- libdecor_frame_set_visibility(frame, pWindow->border());
+ if (fl_wl_xid(pWindow)->kind == DECORATED) {
+ libdecor_frame_set_visibility(frame, pWindow->border());
+ } else {
+ pWindow->hide();
+ pWindow->show();
+ }
pWindow->redraw();
} else {
Fl_Window_Driver::use_border();