[openbox] personal fix for focus follows mouse and keybinding raise/lower window

Mikael Magnusson mangosoft at comhem.se
Tue May 9 13:08:31 EDT 2006


On Tue, 9 May 2006, Emile Snyder wrote:

> On Tue, 2006-05-09 at 10:17 +0200, Mikael Magnusson wrote:
>> On Tue, 9 May 2006, Emile Snyder wrote:
>>
>>> Sorry to ignite all this controversy.  In the interest of anyone who
>>> wants to do this in the future, my fix: in action.c I changed the
>>> action_lower function from
>>>
>>> void action_lower(union ActionData *data)
>>> {
>>>    client_action_start(data);
>>>    stacking_lower(CLIENT_AS_WINDOW(data->client.any.c));
>>>    client_action_end(data);
>>> }
>>>
>>> to
>>>
>>> void action_lower(union ActionData *data)
>>> {
>>>    client_action_start(data);
>>>    stacking_lower(CLIENT_AS_WINDOW(data->client.any.c));
>>>    client_action_end(data);
>>>    ObClient *newfocusedclient = client_under_pointer();
>>>    client_focus(newfocusedclient);
>>> }
>>>
>>> Works like a charm as far as I can tell.  If I've done anything
>>> obviously stupid please let me know,
>>
>> void action_lower(union ActionData *data)
>> {
>>     stacking_lower(CLIENT_AS_WINDOW(data->client.any.c));
>> }
>
> Sorry, what do you mean here?

I mean that my code should do the same as your code, possibly a bit 
better.

> thanks,
> -emile

--
Mikael Magnusson



More information about the openbox mailing list