summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2018-01-03 00:23:49 +0100
committercos <cos>2018-01-03 00:23:49 +0100
commitc39d171f975536253a6b5643d34c45e11c68b677 (patch)
treea42d50f268432eafeea61d7849bfa8a8e4cef09a
parent3d9dccbc70455edd082099a6e2da37ca05a694b8 (diff)
downloadrdesktop-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xwin.c b/xwin.c
index 474c774..acbe839 100644
--- a/xwin.c
+++ b/xwin.c
@@ -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 */