From e9741d01f0b1660b61603b840dd3edd3dc7226e4 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 16 Jul 2017 17:42:28 +0000 Subject: X11 platform: Fix bug in test/overlay where overlay is clipped when using button shortcuts. In branch 1.3, file src/Fl_Overlay_Window.cxx, function Fl_Overlay_Window::flush(), part of line 49 was not reproduced in branch 1.4. This fix reproduces in branch 1.4 the equivalent of the code in branch 1.3. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12320 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/drivers/X11/Fl_X11_Window_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/drivers') diff --git a/src/drivers/X11/Fl_X11_Window_Driver.cxx b/src/drivers/X11/Fl_X11_Window_Driver.cxx index ed5597e84..ea0eaa57a 100644 --- a/src/drivers/X11/Fl_X11_Window_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Window_Driver.cxx @@ -244,7 +244,7 @@ void Fl_X11_Window_Driver::flush_double(int erase_overlay) void Fl_X11_Window_Driver::flush_overlay() { if (!shown()) return; - int erase_overlay = (pWindow->damage()&FL_DAMAGE_OVERLAY); + int erase_overlay = (pWindow->damage()&FL_DAMAGE_OVERLAY) | (overlay() == pWindow); pWindow->clear_damage((uchar)(pWindow->damage()&~FL_DAMAGE_OVERLAY)); #if USE_XDBE if (can_xdbe()) flush_double_dbe(erase_overlay); else -- cgit v1.2.3