Hooking to window movement

killermoehre killermoehre at gmx.net
Thu Jun 20 13:17:46 CEST 2013

Am 20.06.2013 12:48, schrieb Keith Edmunds:
> Is there a way to hook into a window movement?
> What I want to do: I'm running a two monitor setup. I want all windows
> that are on the second monitor to automatically be on all desktops
> ("sticky"). So, I want to do something like: 
> 	IF 
> 		Absolute upper-left X > 1920
> 		wmctrl -b add,sticky -i -r 0x.......
> 		wmctrl -b remove,sticky -i -r 0x.......
> Then, if I move a window so that it is entirely on the second monitor, it
> will be sticky; if I move it back, it will revert.
> Doable?

Probably not. You would need some daemon monitoring all window sizes and
positions. Maybe you can hack something together with libwnck and some
binding to an higher level language knowing about callbacks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20130620/b03c8c09/attachment.pgp>

More information about the Xfce mailing list