wayland: There's only one screen

This commit is contained in:
Kristian Høgsberg
2011-02-11 09:56:58 -05:00
parent 6eac07d4f6
commit ffe3af7f1c
3 changed files with 8 additions and 23 deletions

View File

@ -289,7 +289,7 @@ input_handle_motion(void *data, struct wl_input_device *input_device,
event->motion.axes = NULL;
event->motion.state = device->modifiers;
event->motion.is_hint = 0;
gdk_event_set_screen (event, display->screens[0]);
gdk_event_set_screen (event, display->screen);
GDK_NOTE (EVENTS,
g_message ("motion %d %d, state %d",
@ -319,7 +319,7 @@ input_handle_button(void *data, struct wl_input_device *input_device,
event->button.axes = NULL;
event->button.state = device->modifiers;
event->button.button = button - 271;
gdk_event_set_screen (event, display->screens[0]);
gdk_event_set_screen (event, display->screen);
modifier = 1 << (8 + button - 272);
if (state)