[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] Using Mouse To Change Virtual Desktops
From:       jamslam () gmail ! com (Andrew Gallant)
Date:       2012-06-30 18:43:20
Message-ID: CAMfjfuEEZf=qzGdy=uqwu0kw-Qx2n8DQs-ft5yximF=2jT_PXg () mail ! gmail ! com
[Download RAW message or body]

> You've been able to do this for decades, definitely nothing related to
> compositing. Just create a window that is InputOnly instead of
> InputOutput (or OutputOnly).
>
> ? ? ? ?edge[i]->win = XCreateWindow(obt_display, obt_root(ob_screen),
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? r.x, r.y, r.width, r.height, 0,
> 0, InputOnly,
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? CopyFromParent, CWOverrideRedirect, &xswa);
> ? ? ? ?XSelectInput(obt_display, edge[i]->win, ButtonPressMask |
> ButtonReleaseMask
> ? ? ? ? ? ? ? ? ? ? | EnterWindowMask | LeaveWindowMask);
> ? ? ? ?XMapWindow(obt_display, edge[i]->win);
>
> (sorry if gmail messes that up a bit)

Ah wow, that's cool. Thanks for the tip. I always forget about the
InputOnly windows...

- Andrew

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic