don't do this stuff when it's already done. save bandwidth.
This commit is contained in:
parent
6194c9796c
commit
9c5e87069e
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue