How focus is managed by Openbox with XI2 extension
2014-09-23 07:06:21 GMT
I try to understand how focus is managed in XI2 environment with multiple input devices (MPX). I noticed that Openbox sends SetInputFocus request to set focus on window which was clicked. Openbox works properly with multiple cursors and keyboards from XI2 extension, I can use one master device pair to operate on one window and another master pair to operate on another window. But Openbox does not use XI2 extension and uses core SetInputFocus request which does not define device id. In XI2 focus is set for the given master keyboard device to the given X window (XISetFocus method http://www.x.org/archive/X11R7.5/doc/man/man3/XIGetFocus.3.html). I think that If server receives SetInputRequest request which does not contain device id then server shouldn’t know on which device it should set focus to the given window. But it works and I have no idea how it works. How does server know on which keyboard master device to set the focus? Maybe when X server receives SetInputFocus request it checks which master pointer is on window contained in request and sets focus on master keyboard which is a pair of master pointer. I posted question on superuser StackExchange (http://superuser.com/questions/813939/how-focus-is-managed-in-x-window-system-with-xi2) but It has remained unanswered. I used xscope to monitor communication between X server, Openbox and other clients. May be xscope does not show everything.
Please explain me how it works.
_______________________________________________ openbox mailing list openbox <at> icculus.org http://icculus.org/mailman/listinfo/openbox