Technical discussions | Discussions techniques
Subscription date : 28 October 2009
Messages : 415
|
Hello there,
I'm curious: how do you do window management from the dock i.e. managing windows from the task-bar.
For instance: how to you maximize, minimize, raise or lower windows programmatically? Do you use xlib or something?
Is there a way of doing this through D-Bus?
More interestingly even: how to you listen for new windows (like the Update Manager popping up)?
Cheers,
Benjamin |
matttbe, Friday 23 December 2011 à 13:10
|
|
Subscription date : 28 October 2009
Messages : 415
|
There is a python-xlib indeed. I've managed to do few things with it (raise a window, reserve space for a window, get a list of window IDs and names) but not much more. There is absolutely no literature on python-xlib, not even a doc-string somewhere and mailing lists are scattered. The ICCCM doc is too technical too and not very clear (to me). I'll see if I can make sense of C and translate this into Python. Thanks. |
Subscription date : 28 October 2009
Messages : 415
|
Ah I've found a tool specific to xfce (http://pyxfce.xfce.org/) which offers a ready-made python API to the WM. Python-Xlib works quite differently syntactically from what's on your C code here. |
fabounet, Wednesday 04 January 2012 à 12:32
|
|
Subscription date : 30 November 2007
Messages : 17118
|
The ICCCM doc is too technical too and not very clear (to me)
I thought the same the first time I saw it
it takes several days (weeks) to really master it ... |
Technical discussions | Discussions techniques
|