diff options
| author | Matthias Melcher <github@matthiasm.com> | 2023-04-30 20:08:24 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2023-04-30 20:08:44 +0200 |
| commit | a2929b15baa4a9efedfbdc3eb7b46e626df4f3db (patch) | |
| tree | fadc03103de6f1a962a70a420abcd7c834b39c7b | |
| parent | cdd1566cf942ffa1e04dd72b288551cacfaf48f1 (diff) | |
Undid old change in Windows code that causes undesired results (STR 1115)
Windows created when another window was grab()'d would always become
dependents under WIN32, hiding them when the grabbed window was hidden.
| -rw-r--r-- | src/Fl_win32.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 033c809db..0837f45b4 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2095,8 +2095,15 @@ void Fl_WinAPI_Window_Driver::makeWindow() { parent = fl_xid(w); if (!w->visible()) showit = 0; - } else if (Fl::grab()) - parent = fl_xid(Fl::grab()); +// https://www.fltk.org/str.php?L1115+P0+S-2+C0+I0+O0+E0+V1.+Q +// Mike added the code below to fix issues with tooltips that unfortunately +// he does not specify in detail. After extensive testing, I can'tt see +// how this fixes things, but I do see how a window opened by a timer will +// link that window to the current popup, which is wrong. +// Matt, Apr 30th, 2023 +// } else if (Fl::grab()) { +// parent = fl_xid(Fl::grab()); + } } Fl_X *x = new Fl_X; |
