projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e28fd7d
)
simple-egl: Make window moveable
author
Ander Conselvan de Oliveira
<conselvan2@gmail.com>
Tue, 26 Jun 2012 14:09:11 +0000
(17:09 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 26 Jun 2012 14:21:23 +0000
(10:21 -0400)
clients/simple-egl.c
patch
|
blob
|
history
diff --git
a/clients/simple-egl.c
b/clients/simple-egl.c
index
25c7bdf
..
0091172
100644
(file)
--- 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