Hooking to window movement

Keith Edmunds kae at midnighthax.com
Thu Jun 20 12:48:47 CEST 2013

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: 

		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.

"You can't live a perfect day without doing something for someone 
who will never be able to repay you."

More information about the Xfce mailing list