[notification-daemon] nd-queue: fix 'avoid deprecated GdkDeviceManager' commit



commit abe286f1d3bc72a33520253ff1ded1f10176916c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Dec 19 22:55:58 2015 +0200

    nd-queue: fix 'avoid deprecated GdkDeviceManager' commit

 src/nd-queue.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nd-queue.c b/src/nd-queue.c
index e7e3e84..f2fdeca 100644
--- a/src/nd-queue.c
+++ b/src/nd-queue.c
@@ -809,8 +809,10 @@ popup_dock (NdQueue *queue,
         status = gdk_seat_grab (seat, window, capabilities, TRUE, NULL,
                                 NULL, NULL, NULL);
 
-        if (status != GDK_GRAB_SUCCESS)
+        if (status != GDK_GRAB_SUCCESS) {
+                ungrab (queue, time);
                 return FALSE;
+        }
 
         gtk_widget_grab_focus (queue->priv->dock);
 


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