[openbox] Using Mouse To Change Virtual Desktops

Andrew Gallant jamslam at gmail.com
Sat Jun 30 14:43:20 EDT 2012


> 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


More information about the openbox mailing list