[PATCH] xwayland: Use frame geometry for resizing shell surface

Nils Chr. Brause nilschrbrause at gmail.com
Mon Aug 25 01:17:48 PDT 2014


I also noticed this in current master. This seems to fix the problem. :)

Reviewed-by: Nils Chr. Brause <nilschrbrause at gmail.com>



On Thu, Aug 21, 2014 at 2:51 AM, Ondřej Majerech <majerech.o at gmail.com>
wrote:

> We want to set the size of the entire window, not just the input area.
> This fixes the bug where resizing an X client under XWayland would make
> the window snap to a smaller size, and the pointer would then stay a
> distance away from the frame.
>
> Signed-off-by: Ondřej Majerech <majerech.o at gmail.com>
> ---
>  xwayland/window-manager.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c
> index f1523f5..36df855 100644
> --- a/xwayland/window-manager.c
> +++ b/xwayland/window-manager.c
> @@ -1009,7 +1009,7 @@ weston_wm_window_draw_decoration(void *data)
>                                           input_x, input_y, input_w,
> input_h);
>
>                 shell_interface->set_window_geometry(window->shsurf,
> -                                                    input_x, input_y,
> input_w, input_h);
> +                                                    x, y, width, height);
>         }
>  }
>
> --
> 2.0.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140825/4a7d489c/attachment.html>


More information about the wayland-devel mailing list