]> Dogcows Code - chaz/openbox/blobdiff - openbox/keyboard.c
get the mouse pointer position if it is on another screen too.
[chaz/openbox] / openbox / keyboard.c
index cf56ad8f3b99c60640e273e4b0de9d13fc6d6ede..f6fe64e6018927bf27a7010032ea20bde9b63fb6 100644 (file)
@@ -78,9 +78,11 @@ static gboolean chain_timeout(gpointer data)
 
 static void set_curpos(KeyBindingTree *newpos)
 {
-    grab_keys(FALSE);
-    curpos = newpos;
-    grab_keys(TRUE);
+    if (curpos != newpos) {
+        grab_keys(FALSE);
+        curpos = newpos;
+        grab_keys(TRUE);
+    }
 
     if (curpos != NULL) {
         gchar *text = NULL;
This page took 0.024509 seconds and 4 git commands to generate.