Re: Still need a hint for undecorated windows



Havoc Pennington wrote:
On Thu, 2005-06-30 at 21:33 +0100, Bill Haneman wrote:

Popup menus as they currently work can't be window managed, because the
toolkit wants to grab the keyboard/mouse (and if you let the WM delay
the window mapping, there's a race condition where you have to wait for
the map prior to the grab).

I'd not coin that "want to" but "have to". OOo's popups worked without grabbing the focus until WMs came up with the "Focus exactly under mouse" mode which in fact puts the focus even into an override redirect window and removing it from the corresponding application window. This not only would make OOo close the popup again (arguably OOo's fault) but would also display the application window as inactive. In theory there is no deed to grab the pointer while a popup menu is open; in reality WMs make it necessary.

To do popup menus as managed a couple things are needed:
- they have to behave in Windows style (pop down on unfocus) rather than current "pop down on click elsewhere"

As you can see at least some applications have that already :-)

 - a new _NET_WM_TYPE so window managers don't try to place
   the menu or other such screwups

Just my 2 cents, pl

--
The major difference between a thing that might go wrong and a thing
that cannot possibly go wrong is that when a thing that cannot possibly
go wrong goes wrong, it usually turns out to be impossible to get at
or repair.   -- Douglas Adams



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]