westoy: Remove window_touch_move

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.
This commit is contained in:
Jasper St. Pierre 2013-11-12 20:19:57 -05:00 committed by Kristian Høgsberg
parent e505171a32
commit 01eaaac79a
5 changed files with 3 additions and 18 deletions

View 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[])

View 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

View 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

View 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)
{

View 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);