Comment 1 for bug 432311

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Alessio - I just tried your branch lp:~themolok/winwrangler/winwrangler-spatial-switch, but I can't get the switching to work. Not under Compiz or Metacity at least. The hotkeys are triggered fine, but the focus is just never switched.

Another thing I noted is that it is not always the window I expect to get focus that is targeted by the layout. I saw this while adding some debug statements to your code.

One other thing - if we are going to have handlers like this that change the active window, doing shades, or other we need to pass around the timestamp received from the hotkey callback. This is to be able to bypass the focus-stealing-prevention of the window manager. This means changing the signature of WWLayoutHandler to include a 'guint32 timestamp' variable. Which in turn means that all layouts must be updated to this new API, not a big task, but a task nonethless.