]> Dogcows Code - chaz/openbox/commitdiff
dont skip enter events
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 07:51:33 +0000 (07:51 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 07:51:33 +0000 (07:51 +0000)
plugins/focus.c

index 14d3f67639b8d7ef86a49beabc76e5d25f6a6f34..acad90569f1b422a428daac781a4d1a00392f4fe 100644 (file)
@@ -11,7 +11,7 @@ static gboolean follow_mouse = TRUE;
 static gboolean warp_on_desk_switch = FALSE;
 static gboolean focus_new = FALSE;
 
-static int skip_enter = 0;
+/*static int skip_enter = 0;*/
 
 static gboolean focus_under_pointer()
 {
@@ -102,17 +102,16 @@ static void events(ObEvent *e, void *foo)
         break;
 
     case Event_X_EnterNotify:
-        if (skip_enter) {
+/*        if (skip_enter) {
             if (e->data.x.client != NULL)
                 g_message("skipped enter %lx", e->data.x.client->window);
             else
                 g_message("skipped enter 'root'");
             --skip_enter;
         }
-        else if (e->data.x.client != NULL && client_normal(e->data.x.client)) {
-            g_message("enter %lx", e->data.x.client->window);
+        else*/
+        if (e->data.x.client != NULL && client_normal(e->data.x.client))
             client_focus(e->data.x.client);
-        }
         break;
 
     default:
This page took 0.02193 seconds and 4 git commands to generate.