DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current


One more observation:

The proposed patch has the (IMHO minor) side effect, that you can drag the
window away from an open menu, when the fl_alert() window is open. At least
on windows.

Changing "Fl::grab(0);" to "Fl::grab(message_form);" fixes this
(partially).

Tested on Windows: First, both windows can't be dragged away, while the
fl_alert() window is open. But if you click on another application's
window and then click on one of the test application's windows, then both
window can be dragged, and the menu stays open and doesn't move. After
closing the fl_alert() window, the menu can be clicked and works, and
clicking somewhere else closes the menu.

Albrecht

Patch modification:

+  // deactivate Fl::grab(), because it is incompatible with
Fl::readqueue()
+  Fl_Window* g = Fl::grab();
+  Fl::grab(0);

becomes:

+  // deactivate Fl::grab(), because it is incompatible with
Fl::readqueue()
+  Fl_Window* g = Fl::grab();
+  Fl::grab(message_form);


Link: http://www.fltk.org/str.php?L1869
Version: 1.1-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to