diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-07 22:27:02 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-07 22:27:02 +0000 |
| commit | 2dac2cc01b004a282c8f041065a0e73f2ef538b5 (patch) | |
| tree | f9c53feabfe6c06ef169e900dd9b5774a74dec5d | |
| parent | 5f53cd5fb8b454f309fc8002e21004f70957f7bd (diff) | |
ignore inferior enternotifies
add anotehr focusdebug print
| -rw-r--r-- | openbox/event.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c index 2d548d9e..3a8f96b6 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -289,7 +289,9 @@ void event_process(XEvent *e) event_lasttime = e->xcrossing.time; /* NotifyUngrab occurs when a mouse button is released and the event is caused, like when lowering a window */ - if (e->xcrossing.mode == NotifyGrab) return; + if (e->xcrossing.mode == NotifyGrab || + e->xcrossing.detail == NotifyInferior) + return; break; default: event_lasttime = CurrentTime; @@ -386,8 +388,13 @@ static void event_handle_client(Client *client, XEvent *e) client); focus_order[desktop] = g_list_prepend(focus_order[desktop], client); - } else if (focus_follow) + } else if (focus_follow) { +#ifdef DEBUG_FOCUS + g_message("EnterNotify on %lx, focusing window", + client->window); +#endif client_focus(client); + } } break; case ConfigureRequest: |
