summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/rail.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-12-23 09:59:00 -0800
committerPavel Roskin <plroskin@gmail.com>2017-01-06 11:24:17 -0800
commitc049c3dfd035fec8299eb9a3e9a9f2e2f623acc3 (patch)
tree12035eef70bee34170cffa644683060ca20d26d3 /sesman/chansrv/rail.c
parent7b32fc864c6ad9bb4115d67165e4c31889c2ee01 (diff)
downloadxrdp-proprietary-c049c3dfd035fec8299eb9a3e9a9f2e2f623acc3.tar.gz
xrdp-proprietary-c049c3dfd035fec8299eb9a3e9a9f2e2f623acc3.zip
rail: remove unneeded call to XGetWindowAttributes()
It is already called above "if" with the same arguments.
Diffstat (limited to 'sesman/chansrv/rail.c')
-rw-r--r--sesman/chansrv/rail.c3
1 files changed, 0 insertions, 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);