From c049c3dfd035fec8299eb9a3e9a9f2e2f623acc3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 23 Dec 2016 09:59:00 -0800 Subject: [PATCH] rail: remove unneeded call to XGetWindowAttributes() It is already called above "if" with the same arguments. --- sesman/chansrv/rail.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c index f7e68b08..e790a76b 100644 --- a/sesman/chansrv/rail.c +++ b/sesman/chansrv/rail.c @@ -612,9 +612,6 @@ rail_process_activate(struct stream *s, int size) LOG(10, ("chansrv::rail_process_activate: calling XSetInputFocus 0x%8.8x", window_id)); XSetInputFocus(g_display, window_id, RevertToParent, CurrentTime); } else { - XWindowAttributes window_attributes; - XGetWindowAttributes(g_display, window_id, &window_attributes); - LOG(10, (" window attributes: override_redirect %d", window_attributes.override_redirect)); add_timeout(200, my_timeout, (void*)(long)g_focus_counter);