[mutter/wayland] window: Make sure to end the grab even if the last action was a snap



commit 954677dcbd6ef07e7d26db2f409ec3da5c4fe2c3
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Apr 9 12:40:13 2014 -0700

    window: Make sure to end the grab even if the last action was a snap
    
    This seems to be a cherry-pick failure while we were switching event
    handling around. This matches what the master branch does.

 src/core/window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 60a69f3..5729d57 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -7569,8 +7569,8 @@ meta_window_handle_mouse_grab_op_event  (MetaWindow         *window,
                    */
                   update_tile_mode (window);
                 }
-              meta_display_end_grab_op (window->display, event->any.time);
             }
+          meta_display_end_grab_op (window->display, event->any.time);
         }
       break;
 


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