Re: [Java-gnome-developer] Unable to Activate an hidden Window from a third party library callback
Brought to you by:
afcowie
From: F.L. <lab...@gm...> - 2010-04-12 23:50:23
|
Andrew Cowie <andrew@...> writes: Thank you for your quick reply. > So the question seems to be how to properly implement a desktop wide > hotkey. That's interesting. I had a look at Parcellite (Clipboard manager written in C) to implement that feature quickly and found JXGrabkey implementing it similary; Parcelite application don't have the described problem as its history gui is a popup menu linked to a status icon and clipboard entries are listed as menu items. What I try to do : A) I need to popup a list view on a key, list items can be filtered by typing wildcards in a textview. B) use arrow key (prefered) or mouse to select history entry, put it in the clipboard, hide the window containing the listview C) and try to paste it back in the former active window. XSendKey ? C) due to B) out of scope for the moment. > > The window manager gets away with this, obviously, but the question is > how other apps can register such a thing. I've noticed a few > applications that seem to do so. Hamster Applet's preference dialog has > a "global hotkey" Entry which contains (on my system anyway) > "<Super>+H", for example. > > Maybe we could have a look at their code (which is Python, I'm afraid) > to see what they're doing. OK I'll have a look. > Did you try Window's present()? Yes I did, no result. . > But the fact you're having to go straight to X (instead of letting GDK > do it for you) is a very bad sign; that usually causes problems. :)( I'am currently doing some painful experimentations X11/C. I was naively hoping to stay in the good old safe Java world :) F.L. |