]> Dogcows Code - chaz/openbox/commitdiff
don't do this stuff when it's already done. save bandwidth.
authorDana Jansens <danakj@orodu.net>
Tue, 15 May 2007 03:47:39 +0000 (03:47 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 15 May 2007 03:47:39 +0000 (03:47 +0000)
openbox/focus.c

index 7e1623bd61df8957cc94350cfff3f34462c10e6f..47c3846f0a7e8115603a0d78193f76f84a52ddd1 100644 (file)
@@ -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);
This page took 0.02372 seconds and 4 git commands to generate.