diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 08:18:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 08:18:39 +0000 |
| commit | db75d406ce6194dd85c142616071e55f9b831f60 (patch) | |
| tree | 6adc0ce1981de73b358b76cb26bb6c9821907dd4 /plugins | |
| parent | ca45916f77822dcd48a4d4f459c719e5e000a4b7 (diff) | |
rm the focused member from the client struct, it was redundant with the focus_client variable around
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/focus.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/focus.c b/plugins/focus.c index acad9056..96c38639 100644 --- a/plugins/focus.c +++ b/plugins/focus.c @@ -76,6 +76,7 @@ static void focus_fallback(gboolean switching_desks) static void events(ObEvent *e, void *foo) { + g_message("event %d", e->type); switch (e->type) { case Event_Client_Mapped: if (focus_new && client_normal(e->data.c.client)) @@ -85,7 +86,7 @@ static void events(ObEvent *e, void *foo) case Event_Client_Unmapped: if (ob_state == State_Exiting) break; - if (e->data.c.client->focused) + if (client_focused(e->data.c.client)) if (!follow_mouse || !focus_under_pointer()) focus_fallback(FALSE); break; @@ -110,8 +111,10 @@ static void events(ObEvent *e, void *foo) --skip_enter; } else*/ - if (e->data.x.client != NULL && client_normal(e->data.x.client)) + if (e->data.x.client != NULL && client_normal(e->data.x.client)) { client_focus(e->data.x.client); + g_message("enter %lx", e->data.x.client->window); + } break; default: |
