[mutter/wip/wayland-clutter-events-2: 1/19] Rename meta_display_handle_event to meta_display_handle_xevent



commit fd5336d71d343876052220a20ec8db9b2c30781b
Author: Neil Roberts <neil linux intel com>
Date:   Thu Aug 29 14:07:50 2013 +0100

    Rename meta_display_handle_event to meta_display_handle_xevent
    
    The plan is to make a new version of meta_display_handle_event that
    will accept Clutter events instead of X events and then gradually move
    over the events to the new function and finally remove the X version.

 src/core/display-private.h |    4 ++--
 src/core/display.c         |    8 ++++----
 src/wayland/meta-wayland.c |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/core/display-private.h b/src/core/display-private.h
index 53f8a6f..d3427f8 100644
--- a/src/core/display-private.h
+++ b/src/core/display-private.h
@@ -482,8 +482,8 @@ gboolean meta_display_modifiers_accelerator_activate (MetaDisplay *display);
 /* In above-tab-keycode.c */
 guint meta_display_get_above_tab_keycode (MetaDisplay *display);
 
-gboolean meta_display_handle_event (MetaDisplay *display,
-                                    XEvent      *event);
+gboolean meta_display_handle_xevent (MetaDisplay *display,
+                                     XEvent      *event);
 
 #ifdef HAVE_XI23
 gboolean meta_display_process_barrier_event (MetaDisplay    *display,
diff --git a/src/core/display.c b/src/core/display.c
index 6f47023..47586bc 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2191,7 +2191,7 @@ handle_window_focus_event (MetaDisplay  *display,
 }
 
 /**
- * meta_display_handle_event:
+ * meta_display_handle_xevent:
  * @display: The MetaDisplay that events are coming from
  * @event: The event that just happened
  *
@@ -2204,8 +2204,8 @@ handle_window_focus_event (MetaDisplay  *display,
  * dealing with all the kinds of events that might turn up.
  */
 gboolean
-meta_display_handle_event (MetaDisplay *display,
-                           XEvent   *event)
+meta_display_handle_xevent (MetaDisplay *display,
+                            XEvent      *event)
 {
   MetaWindow *window;
   MetaWindow *property_for_window;
@@ -3200,7 +3200,7 @@ event_callback (XEvent  *event,
       event->xcookie.evtype == XI_Motion)
     return FALSE;
 
-  return meta_display_handle_event (display, event);
+  return meta_display_handle_xevent (display, event);
 }
 
 /* Return the window this has to do with, if any, rather
diff --git a/src/wayland/meta-wayland.c b/src/wayland/meta-wayland.c
index 13bbb9a..6577923 100644
--- a/src/wayland/meta-wayland.c
+++ b/src/wayland/meta-wayland.c
@@ -643,7 +643,7 @@ synthesize_motion_event (MetaWaylandCompositor *compositor,
   device_event.valuators.mask = NULL;
   device_event.valuators.values = NULL;
 
-  meta_display_handle_event (display, (XEvent *) &generic_event);
+  meta_display_handle_xevent (display, (XEvent *) &generic_event);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]