diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-15 03:47:39 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-15 03:47:39 +0000 |
| commit | 9c5e87069ef306828226bd7e162c7de0dc65df80 (patch) | |
| tree | 1cd0395cb7a28d9bceef52505915b441d6e58ff5 /openbox/focus.c | |
| parent | 6194c9796c22affe9ac3ee712f3fee4b67a7fe36 (diff) | |
don't do this stuff when it's already done. save bandwidth.
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 7e1623bd..47c3846f 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -160,6 +160,9 @@ void focus_set_client(ObClient *client) ob_debug_type(OB_DEBUG_FOCUS, "focus_set_client 0x%lx\n", client ? client->window : 0); + if (focus_client == client) + return; + /* uninstall the old colormap, and install the new one */ screen_install_colormap(focus_client, FALSE); screen_install_colormap(client, TRUE); |
