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.
dev
Jasper St. Pierre 11 years ago committed by Kristian Høgsberg
parent e505171a32
commit 01eaaac79a
  1. 3
      clients/flower.c
  2. 3
      clients/fullscreen.c
  3. 3
      clients/transformed.c
  4. 10
      clients/window.c
  5. 2
      clients/window.h

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

@ -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

@ -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

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

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

Loading…
Cancel
Save