c - Is there a Linux equivalent of SetWindowPos? -
a while ago wrote script in c used windows api functions enumwindows, setwindowpos , setforegroundwindow automatically arrange windows (by title) in particular layout commonly wanted.
are there linux equivalents these functions? using kubuntu, kde-specific and/or ubuntu-specific solutions fine.
the best way either in window manager (if yours supports extensions) or protocols , hints designed support "pagers" (pager = non-window-manager process window organization or navigation things).
the ewmh spec includes _net_moveresize_window designed use pagers. http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2731465
raw xlib or xcb pretty rough there's library called libwnck designed kind of thing you're talking about. (i wrote original library long ago it's been maintained others forever.) if don't use it, read code see how stuff. kde may have equivalent kde-style apis i'm not sure.
there should no need use kde or gnome or distribution specific since needed stuff spelled out in ewmh. said, window managers doing extension may easier writing separate app.
using old school x calls directly can made work there lots of details handle there require significant expertise if want iron out bugs , corner cases, in opinion, using wm extension api or pager library advice.
Comments
Post a Comment