X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fx.c;h=5b54d1457de1829590e8a16f16db8a7dd822aeac;hb=dc16df439e8866ba49b69304412757c07d5807e5;hp=0fc6e714e5ab27f28c1ae929ed6849ceb4adbb50;hpb=2ddf4f2c6d6f304ea0a8f45020d3d83e680f59b1;p=i3%2Fi3 diff --git a/src/x.c b/src/x.c index 0fc6e714..5b54d145 100644 --- a/src/x.c +++ b/src/x.c @@ -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) {