From 2d263a830afa771a59991dd3ba1a6e9b6226bfbc Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 12 Apr 2023 00:32:20 +0200 Subject: [PATCH] Wayland: limit copied pixels when window update is a region - cont'd Handle Fl_Overlay_Window objects --- src/drivers/Wayland/Fl_Wayland_Window_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();