python - What should a Window Manager do with a ConfigureRequestEvent? -
for sins (and fun learning experience) writing window manager (i know, know).
i'm using python , xcb (python-xpyb).
so far have figured out need use substructureredirect mask on root window(s), , being passed events related applications' top-level windows. i'm testing launching xterm.
i configurerequestevent, followed pause, followed configurerequestevent, , maprequestevent.
when maprequestevent call connection.core.mapwindowchecked(e.window)
, works, maps window pixel or 2 wide/tall.
my question, then, should configurerequestevent make window correct size (assuming thats i'm missing)?
more accurately, call? mapwindowchecked obvious choice, can't seem find how configure width/height. i'm guessing configurewindow, arguments accepts seem obscure me. last time called used xcb.xproto.cw.eventmask, none of flags in cw seem related width/height.
ps documentation on of seems quite elusive me. i've looked @ couple of python window managers supposedly use xcb, , seem use own custom versions functionality. also, examining/debugging running window manager (which responsible mapping debugger's window) pita, hence asking here. better use 2 machines or vm or something.
thanks.
the short answer configure window (size, stacking, etc.) calling configurewindow. long answer here impose policy , honor specs such xsizehints. best have @ existing wms' source , sense of do. depends on desired ui.
the simplest thing working configurewindow request asks no policy or hint overrides. you'll see lots of usability problems , have add more smarts.
Comments
Post a Comment