diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-09 08:23:09 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-09-09 08:23:09 +0200 |
| commit | 1b0f21cc8fec9a933770a2ed6d7feafe91ee8333 (patch) | |
| tree | aebfc00f44da165e6bbce63a400ef9bd9b45d612 | |
| parent | 7800c2f3c3195089932e9dbb62371c6408e1e5fe (diff) | |
Wayland: support going from borderless to bordered window.
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 7 |
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(); |
