summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 07:51:33 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 07:51:33 +0000
commit7287ae738ebf56b3e5f985b89ce97bfac5343a76 (patch)
tree8af69fab54ea0b089981a2e04e3adfe8a6bbe9a0 /plugins
parent29e3748605eaf86635aed48273bddfdcdcae05c4 (diff)
dont skip enter events
Diffstat (limited to 'plugins')
-rw-r--r--plugins/focus.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/focus.c b/plugins/focus.c
index 14d3f676..acad9056 100644
--- a/plugins/focus.c
+++ b/plugins/focus.c
@@ -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: