[gnome-robots/gnome-3-16] Fix dragging the window after clicking the game view



commit 881ba1dd9f354db231e558c335f382e22a58ffac
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Sep 11 12:29:47 2015 -0500

    Fix dragging the window after clicking the game view
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754837

 src/gnome-robots.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-robots.c b/src/gnome-robots.c
index 5de4ce8..781d17a 100644
--- a/src/gnome-robots.c
+++ b/src/gnome-robots.c
@@ -338,7 +338,7 @@ activate (GtkApplication *app, gpointer user_data)
   make_cursors ();
 
   game_area = gtk_drawing_area_new ();
-  gtk_widget_add_events (game_area, GDK_BUTTON_PRESS_MASK |
+  gtk_widget_add_events (game_area, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
                         GDK_POINTER_MOTION_MASK);
   g_signal_connect (G_OBJECT (game_area), "button-press-event",
                    G_CALLBACK (mouse_cb), NULL);


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