[openbox] followMouse and resized windows
Mikael Magnusson
mangosoft at comhem.se
Sat Mar 1 11:03:24 EST 2008
On Sat, 1 Mar 2008, Mike Hokenson wrote:
>
> On Saturday, March 01, 2008 at 04:50PM, 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.
--
Mikael Magnusson
More information about the openbox
mailing list