[openbox] followMouse and resized windows
Mike Hokenson
openbox at gozer.org
Mon Apr 7 11:14:54 EDT 2008
On Saturday, March 01, 2008 at 05:03PM, Mikael Magnusson wrote:
>>> Ah hm, it seems the code that handles app resizes unconditionally ignores
>>> the enters, I think this patch will help
>>>
>>> diff --git a/openbox/client.c b/openbox/client.c
>>> index 816fa92..9db4e9f 100644
>>> --- a/openbox/client.c
>>> +++ b/openbox/client.c
>>> @@ -3042,7 +3042,7 @@ void client_configure(ObClient *self, gint x, gint
>>> y, gint w, gint h,
>>> /* adjust the frame */
>>> if (fmoved || fresized) {
>>> gulong ignore_start;
>>> - if (!user)
>>> + if (!user && !config_under_mouse)
>>> ignore_start = event_start_ignore_all_enters();
>>>
>>> /* replay pending pointer event before move the window, in case
>>> it
>>> @@ -3051,7 +3051,7 @@ void client_configure(ObClient *self, gint x, gint
>>> y, gint w, gint h,
>>>
>>> frame_adjust_area(self->frame, fmoved, fresized, FALSE);
>>>
>>> - if (!user)
>>> + if (!user && !config_under_mouse)
>>> event_end_ignore_all_enters(ignore_start);
>>> }
>>
>> Yeah, that works, but I think you mean config_focus_under_mouse unless
>> the option names have changed in cvs.
>
> Ah right. Obviously I didn't test the patch myself :). Btw we haven't
> used cvs in several years, using git now.
I don't see this patch in 3.4.7-pre3, is this behavior not going into
openbox or was it just missed?
More information about the openbox
mailing list