summaryrefslogtreecommitdiffstats
path: root/wayland/window.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-14 18:57:37 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-14 18:57:37 -0400
commit6abbe04e7590f3bfba13351eb87ada70ac3d506e (patch)
treef7c64d6e9d082bd080960c42e21e54edf01839de /wayland/window.c
parentMerge pull request #726 from Hummer12007/hwc (diff)
parentSend command to sway to change workspace when workspace button is clicked (diff)
downloadsway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.tar.gz
sway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.tar.zst
sway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.zip
Merge pull request #743 from deklov/panel-as-shell-03
Set panels/backgrounds' geometries correctly and don't render them ex…
Diffstat (limited to 'wayland/window.c')
-rw-r--r--wayland/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland/window.c b/wayland/window.c
index e055e244..9b6e5b00 100644
--- a/wayland/window.c
+++ b/wayland/window.c
@@ -32,8 +32,8 @@ static void pointer_handle_motion(void *data, struct wl_pointer *pointer,
32 uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w) { 32 uint32_t time, wl_fixed_t sx_w, wl_fixed_t sy_w) {
33 struct window *window = data; 33 struct window *window = data;
34 34
35 window->pointer_input.last_x = sx_w; 35 window->pointer_input.last_x = wl_fixed_to_int(sx_w);
36 window->pointer_input.last_y = sy_w; 36 window->pointer_input.last_y = wl_fixed_to_int(sy_w);
37} 37}
38 38
39static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial, 39static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial,