[mutter] display: Rename META_GRAB_OP_WAYLAND_CLIENT to WAYLAND_POPUP



commit e55dd4e3f46a67b927576b136991fdf24eb89d3c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Apr 20 11:37:46 2014 -0400

    display: Rename META_GRAB_OP_WAYLAND_CLIENT to WAYLAND_POPUP
    
    We're going to introduce other grab ops soon.

 src/core/display.c                 |    2 +-
 src/core/events.c                  |    4 ++--
 src/meta/common.h                  |    4 ++--
 src/wayland/meta-wayland-pointer.c |    2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 62c63e9..4da248c 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -1302,7 +1302,7 @@ meta_grab_op_should_block_wayland (MetaGrabOp op)
   if (op == META_GRAB_OP_NONE)
     return FALSE;
 
-  if (op == META_GRAB_OP_WAYLAND_CLIENT)
+  if (op == META_GRAB_OP_WAYLAND_POPUP)
     return FALSE;
 
   /* Clicking on a frame button needs us to deliver events to the
diff --git a/src/core/events.c b/src/core/events.c
index 7741d8e..6233543 100644
--- a/src/core/events.c
+++ b/src/core/events.c
@@ -1703,7 +1703,7 @@ grab_op_should_block_mouse_events (MetaGrabOp op)
 {
   switch (op)
     {
-    case META_GRAB_OP_WAYLAND_CLIENT:
+    case META_GRAB_OP_WAYLAND_POPUP:
     case META_GRAB_OP_COMPOSITOR:
       return TRUE;
 
@@ -2165,7 +2165,7 @@ meta_display_handle_event (MetaDisplay        *display,
     bypass_wayland = TRUE;
 
   /* If a Wayland client has a grab, don't pass that through to Clutter */
-  if (display->grab_op == META_GRAB_OP_WAYLAND_CLIENT)
+  if (display->grab_op == META_GRAB_OP_WAYLAND_POPUP)
     bypass_clutter = TRUE;
 
   if (compositor && !bypass_wayland)
diff --git a/src/meta/common.h b/src/meta/common.h
index 6ae1d89..457576b 100644
--- a/src/meta/common.h
+++ b/src/meta/common.h
@@ -223,8 +223,8 @@ typedef enum
   /* Special grab op when the compositor asked for a grab */
   META_GRAB_OP_COMPOSITOR,
 
-  /* For when a client takes a popup grab */
-  META_GRAB_OP_WAYLAND_CLIENT,
+  /* For when a Wayland client takes a popup grab */
+  META_GRAB_OP_WAYLAND_POPUP,
 } MetaGrabOp;
 
 /**
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index ca77865..19f03ea 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -793,7 +793,7 @@ meta_wayland_pointer_start_popup_grab (MetaWaylandPointer *pointer,
       meta_display_begin_grab_op (window->display,
                                   window->screen,
                                   window,
-                                  META_GRAB_OP_WAYLAND_CLIENT,
+                                  META_GRAB_OP_WAYLAND_POPUP,
                                   FALSE, /* pointer_already_grabbed */
                                   FALSE, /* frame_action */
                                   1, /* button. XXX? */


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