mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user