summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-12 00:32:20 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-04-12 00:32:20 +0200
commit2d263a830afa771a59991dd3ba1a6e9b6226bfbc (patch)
treed0d11fe1037008c758199a24b34b652bd6f996d0 /src/drivers
parent9e00bd26060cc2c596ba4278e52701473eb2e69b (diff)
Wayland: limit copied pixels when window update is a region - cont'd
Handle Fl_Overlay_Window objects
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
index 4fa9cd25a..790ea7473 100644
--- a/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
+++ b/src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx
@@ -395,7 +395,7 @@ void Fl_Wayland_Window_Driver::flush() {
Fl_X *ip = Fl_X::flx(pWindow);
struct flCairoRegion* r = (struct flCairoRegion*)ip->region;
- if (!window->buffer) r = NULL;
+ if (!window->buffer || pWindow->as_overlay_window()) r = NULL;
Fl_Wayland_Window_Driver::in_flush = true;
Fl_Window_Driver::flush();