[mutter/wip/xinput2b: 20/20] Remove support for Core Events
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/xinput2b: 20/20] Remove support for Core Events
- Date: Mon, 26 Nov 2012 01:39:29 +0000 (UTC)
commit 0ed41b4a7216c94898279b129a1d4aa908dc1f25
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Nov 20 20:36:03 2012 -0500
Remove support for Core Events
https://bugzilla.gnome.org/show_bug.cgi?id=688779
src/compositor/compositor.c | 12 -------
src/core/display.c | 73 -------------------------------------------
2 files changed, 0 insertions(+), 85 deletions(-)
---
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index db57d37..4b88e45 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -743,18 +743,6 @@ is_grabbed_event (MetaDisplay *display,
}
}
- switch (event->type)
- {
- case ButtonPress:
- case ButtonRelease:
- case EnterNotify:
- case LeaveNotify:
- case MotionNotify:
- case KeyPress:
- case KeyRelease:
- return TRUE;
- }
-
return FALSE;
}
diff --git a/src/core/display.c b/src/core/display.c
index 9800446..7fea143 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2942,8 +2942,6 @@ event_get_modified_window (MetaDisplay *display,
case SelectionNotify:
case ColormapNotify:
case ClientMessage:
- case EnterNotify:
- case LeaveNotify:
return event->xany.window;
case CreateNotify:
@@ -3261,77 +3259,6 @@ meta_spew_event (MetaDisplay *display,
switch (event->type)
{
- case KeyPress:
- name = "KeyPress";
- extra = key_event_description (display->xdisplay, event);
- break;
- case KeyRelease:
- name = "KeyRelease";
- extra = key_event_description (display->xdisplay, event);
- break;
- case ButtonPress:
- name = "ButtonPress";
- extra = g_strdup_printf ("button %u state 0x%x x %d y %d root 0x%lx same_screen %d",
- event->xbutton.button,
- event->xbutton.state,
- event->xbutton.x,
- event->xbutton.y,
- event->xbutton.root,
- event->xbutton.same_screen);
- break;
- case ButtonRelease:
- name = "ButtonRelease";
- extra = g_strdup_printf ("button %u state 0x%x x %d y %d root 0x%lx same_screen %d",
- event->xbutton.button,
- event->xbutton.state,
- event->xbutton.x,
- event->xbutton.y,
- event->xbutton.root,
- event->xbutton.same_screen);
- break;
- case MotionNotify:
- name = "MotionNotify";
- extra = g_strdup_printf ("win: 0x%lx x: %d y: %d",
- event->xmotion.window,
- event->xmotion.x,
- event->xmotion.y);
- break;
- case EnterNotify:
- name = "EnterNotify";
- extra = g_strdup_printf ("win: 0x%lx root: 0x%lx subwindow: 0x%lx mode: %s detail: %s focus: %d x: %d y: %d",
- event->xcrossing.window,
- event->xcrossing.root,
- event->xcrossing.subwindow,
- meta_event_mode_to_string (event->xcrossing.mode),
- meta_event_detail_to_string (event->xcrossing.detail),
- event->xcrossing.focus,
- event->xcrossing.x,
- event->xcrossing.y);
- break;
- case LeaveNotify:
- name = "LeaveNotify";
- extra = g_strdup_printf ("win: 0x%lx root: 0x%lx subwindow: 0x%lx mode: %s detail: %s focus: %d x: %d y: %d",
- event->xcrossing.window,
- event->xcrossing.root,
- event->xcrossing.subwindow,
- meta_event_mode_to_string (event->xcrossing.mode),
- meta_event_detail_to_string (event->xcrossing.detail),
- event->xcrossing.focus,
- event->xcrossing.x,
- event->xcrossing.y);
- break;
- case FocusIn:
- name = "FocusIn";
- extra = g_strdup_printf ("detail: %s mode: %s\n",
- meta_event_detail_to_string (event->xfocus.detail),
- meta_event_mode_to_string (event->xfocus.mode));
- break;
- case FocusOut:
- name = "FocusOut";
- extra = g_strdup_printf ("detail: %s mode: %s\n",
- meta_event_detail_to_string (event->xfocus.detail),
- meta_event_mode_to_string (event->xfocus.mode));
- break;
case KeymapNotify:
name = "KeymapNotify";
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]