[PATCH weston 1/5] simple-egl: Make window moveable
Kristian Høgsberg
hoegsberg at gmail.com
Tue Jun 26 07:38:14 PDT 2012
On Tue, Jun 26, 2012 at 05:09:11PM +0300, Ander Conselvan de Oliveira wrote:
Looks good, but you know you can move windows with super+click, right?
Kristian
> ---
> clients/simple-egl.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/clients/simple-egl.c b/clients/simple-egl.c
> index 25c7bdf..0091172 100644
> --- a/clients/simple-egl.c
> +++ b/clients/simple-egl.c
> @@ -28,6 +28,8 @@
> #include <assert.h>
> #include <signal.h>
>
> +#include <linux/input.h>
> +
> #include <wayland-client.h>
> #include <wayland-egl.h>
>
> @@ -380,6 +382,11 @@ pointer_handle_button(void *data, struct wl_pointer *wl_pointer,
> uint32_t serial, uint32_t time, uint32_t button,
> uint32_t state)
> {
> + struct display *display = data;
> +
> + if (button == BTN_LEFT && state == WL_POINTER_BUTTON_STATE_PRESSED)
> + wl_shell_surface_move(display->window->shell_surface,
> + display->seat, serial);
> }
>
> static void
> --
> 1.7.9.5
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list