westoy: Remove window_touch_move
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 13 Nov 2013 01:19:57 +0000 (20:19 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Nov 2013 00:37:36 +0000 (16:37 -0800)
It seems to be the same as window_move, except it ignores the passed
in serial (???) and instead just uses the one of the display.

clients/flower.c
clients/fullscreen.c
clients/transformed.c
clients/window.c
clients/window.h

index 825c833..389f8be 100644 (file)
@@ -158,8 +158,7 @@ touch_down_handler(struct widget *widget, struct input *input,
                   float x, float y, void *data)
 {
        struct flower *flower = data;
-       window_touch_move(flower->window, input, 
-                         display_get_serial(flower->display));
+       window_move(flower->window, input, display_get_serial(flower->display));
 }
 
 int main(int argc, char *argv[])
index 72e2c81..034a352 100644 (file)
@@ -283,8 +283,7 @@ touch_handler(struct widget *widget, struct input *input,
                   float x, float y, void *data)
 {
        struct fullscreen *fullscreen = data;
-       window_touch_move(fullscreen->window, input, 
-                         display_get_serial(fullscreen->display));
+       window_move(fullscreen->window, input, display_get_serial(fullscreen->display));
 }
 
 static void
index 54212dd..bbc1dc0 100644 (file)
@@ -227,8 +227,7 @@ touch_handler(struct widget *widget, struct input *input,
                   float x, float y, void *data)
 {
        struct transformed *transformed = data;
-       window_touch_move(transformed->window, input, 
-                         display_get_serial(transformed->display));
+       window_move(transformed->window, input, display_get_serial(transformed->display));
 }
 
 static void
index b703656..0afd46b 100644 (file)
@@ -3590,16 +3590,6 @@ window_move(struct window *window, struct input *input, uint32_t serial)
        wl_shell_surface_move(window->shell_surface, input->seat, serial);
 }
 
-void
-window_touch_move(struct window *window, struct input *input, uint32_t serial)
-{
-       if (!window->shell_surface)
-               return;
-
-       wl_shell_surface_move(window->shell_surface, input->seat, 
-                             window->display->serial);
-}
-
 static void
 surface_set_synchronized(struct surface *surface)
 {
index ff7c87b..59e483e 100644 (file)
@@ -333,8 +333,6 @@ window_get_display(struct window *window);
 void
 window_move(struct window *window, struct input *input, uint32_t time);
 void
-window_touch_move(struct window *window, struct input *input, uint32_t time);
-void
 window_get_allocation(struct window *window, struct rectangle *allocation);
 void
 window_schedule_redraw(struct window *window);