[Goodies-dev] Moving another window

Erlend Davidson E.R.M.Davidson at sms.ed.ac.uk
Fri Sep 14 21:54:38 CEST 2007


On 14 Sep 2007, at 18:08, Martin Forsgren wrote:

> Hi all!
>
> 1: Anyone who know if you can move/resize a window from another
> application.
>
> 2: Is it possible with only the xfce... libraries or do you need to  
> use
> 	xlib or connect it to gtk or something?
>
> 3: How do you do this in Python?
> 	( Also c++ examples are helpfull )
>
>
> I need to get all windows, wich works with following code:
>
> 	import xfce4
> 	import xfce4.netk as netk
>
> 	for window in netk.screen_get_default().get_windows_stacked():
> 		print window.get_resource_name()
>
> but then, what can I do with these windows I get? I tried something
> like window.set_data('geometry',(1,2,34,53)) and so on, but I haven't
> come to anything.
>
> I've got some cool idéas if I only can solve this part.

I think you can move windows around using the "wmctrl" command:
http://sweb.cz/tripie/utils/wmctrl/



More information about the Goodies-dev mailing list