gEDA-dev: PCB Raise Window Action
Peter Clifton
pcjc2 at cam.ac.uk
Sat Dec 2 09:02:51 EST 2006
Still putting together "glue" for interaction with a project manager,
the following patch adds HID Actions to the GTK and Lesstif HIDs, which
request that X11 raises the window to the top of the stack.
Owing to Focus Stealing Prevention on some (all modern) window managers,
I've also added the action WindowSetWMTime() which sets the user
interaction time ( _NET_WM_USER_TIME ) property on the top window to a
given value.
If the user-interaction timestamp is the biggest on the system, the
window will raise when requested. If another app has had later user
interaction, your app won't raise when you ask it to.
Whilst in Lesstif, I know we can assume X11, I'm not sure about GTK.
Does anyone use PCB's GTK HID without X11? (Native Aqua / Windows?). If
so, I'll have to put in some conditional compilation steps.
(NB: Patch may have large line-offsets if applied without the mainloop
hooking support in the HID, as I just snipped out sections relevant to
the window raise)
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: window_raise_actions.patch
Type: text/x-patch
Size: 4755 bytes
Desc: not available
Url : http://www.seul.org/pipermail/geda-dev/attachments/20061202/854548fe/window_raise_actions.bin
More information about the geda-dev
mailing list