diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-09-13 21:57:46 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-09-13 21:57:46 +0000 |
| commit | 3cf86721739328f1a18a318dfcb583497b91728c (patch) | |
| tree | 4b5765a89ec96a2a4485d6cdadfdbaa8ce4722e7 /src/fl_ask.cxx | |
| parent | 517fb60eb56c2a9f72ba79d298c3311494578e98 (diff) | |
Fixed X server "lock", if a modal dialog window is opened while a menu
is active (STR #1986).
This is only an intermediate fix. The full fix should dismiss the menu
when the mouse is clicked outside the menu area.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6869 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_ask.cxx')
| -rw-r--r-- | src/fl_ask.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 01c95ea43..4397d3859 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -215,8 +215,7 @@ static int innards(const char* fmt, va_list ap, message_form->show(); // deactivate Fl::grab(), because it is incompatible with Fl::readqueue() Fl_Window* g = Fl::grab(); - if (g) // do an alternative grab to avoid floating menus, if possible - Fl::grab(message_form); + if (g) Fl::grab(0); int r = 0; for (;;) { Fl_Widget *o = Fl::readqueue(); |
