Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Window Management
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Technical discussions | Discussions techniques

Subjects Author Language Messages Last message
[Locked] Window Management
jesuisbenjamin English 4 fabounet [Read]
04 January 2012 à 12:32

jesuisbenjamin, Friday 23 December 2011 à 12:55


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 : 24 January 2009
Messages : 12573
Hello,

For instance: how to you maximize, minimize, raise or lower windows programmatically? Do you use xlib or something?
By using X11 (xlib, xatom, etc.) => http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-core/cairo-dock/view/head:/src/gldit/cairo-dock-X-utilities.c

I'm not sure that you can do that with D-Bus but I think there is a python module for that (python-xlib?).

jesuisbenjamin, Friday 23 December 2011 à 13:14


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.

jesuisbenjamin, Friday 23 December 2011 à 18:33


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

Subjects Author Language Messages Last message
[Locked] Window Management
jesuisbenjamin English 4 fabounet [Read]
04 January 2012 à 12:32


Glx-Dock / Cairo-Dock List of forums Technical discussions | Discussions techniques Window Management Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.