nanogui: nanox+flnx problem
Subject:
Re: [nanogui] nanox+flnx problem
From:
Jordan Crouse ####@####.####
Date:
15 Jul 2002 18:42:02 -0000
Message-Id: <1026757612.17785.251.camel@cosmic>
Known problem - the FLNX menubars are actually toplevel windows - so
they won't move with the other window. X11 has the same problem, but
they solve it by restricting pointer / keyboard to the menu window (try
it - bring up a menu and try to move the main window). Since nano-X
really has no concept of grabbing the keyboard or pointer then the
window manager is allowing the window to be moved because the mouse
event on the other window is not ignored like FLTK/FLNX thinks it should
be.
There are two ways to fix this:
1 - Set a special window property that alerts the window manager when a
"modal" window is created, and have it ignore all events outside of that
window.
2 - Implement XGrabPointer() and XGrabKeyboard() style commands for
Nano-X.
The first one is easier, but the second one is more elegant (and a
better long term solution).
Jordan