[openbox] followMouse and resized windows
Mike Hokenson
openbox at gozer.org
Sat Mar 1 10:58:14 EST 2008
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.
Thanks,
Mike
More information about the openbox
mailing list