summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-16 17:42:28 +0000
committerManolo Gouy <Manolo>2017-07-16 17:42:28 +0000
commite9741d01f0b1660b61603b840dd3edd3dc7226e4 (patch)
tree2d71c84a74fa64b8fe579ddba1e6167df60a0909 /src/drivers
parenta74cca3219497690b577206066a0e87a957f3c87 (diff)
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
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/X11/Fl_X11_Window_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
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