diff options
author | cos <cos> | 2018-01-03 00:23:49 +0100 |
---|---|---|
committer | cos <cos> | 2018-01-03 00:23:49 +0100 |
commit | c39d171f975536253a6b5643d34c45e11c68b677 (patch) | |
tree | a42d50f268432eafeea61d7849bfa8a8e4cef09a | |
parent | 3d9dccbc70455edd082099a6e2da37ca05a694b8 (diff) | |
download | rdesktop-hax/remap_workaround.zip |
Work around window resize issue on current masterhax/remap_workaround
Details on https://github.com/rdesktop/rdesktop/issues/217
-rw-r--r-- | xwin.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2238,14 +2238,16 @@ ui_resize_window(uint32 width, uint32 height) XWindowAttributes attr; XSizeHints *sizehints; Pixmap bs; + static int has_run_once = 0; XGetWindowAttributes(g_display, g_wnd, &attr); - if ((attr.width == (int)width && attr.height == (int)height)) + if ((attr.width == (int)width && attr.height == (int)height) && has_run_once) { /* no-op */ return; } + has_run_once = 1; logger(GUI, Debug, "ui_resize_window(), Changing window %dx%d to match new session %dx%d size", attr.width, attr.height, width, height); @@ -2918,6 +2920,8 @@ xwin_process_events(void) sw_handle_restack(sw); break; + default: + printf("XEvent: %d\n", xevent.type); } } /* Keep going */ |