Update ewmh focused only when new focus is different (#3496)

Fixes #3495.
This commit is contained in:
Orestis
2018-11-03 14:39:49 +02:00
committed by Michael Stapelberg
parent a0105dd2f2
commit dc16df439e
2 changed files with 10 additions and 4 deletions

View File

@ -105,6 +105,10 @@ static con_state *state_for_frame(xcb_window_t window) {
*
*/
static void change_ewmh_focus(xcb_window_t new_focus, xcb_window_t old_focus) {
if (new_focus == old_focus) {
return;
}
ewmh_update_active_window(new_focus);
if (new_focus != XCB_WINDOW_NONE) {