From 3cf86721739328f1a18a318dfcb583497b91728c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 13 Sep 2009 21:57:46 +0000 Subject: 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 --- src/fl_ask.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3