Fix regression introduced in commit 85c10b5
There was either an X11 BadMatch error crash or the rdesktop main window disappeared when toggling from window to fullscreen. The bug is consitently reproducible but only on some systems, maybe this is a X11 version dependent bug. Move back to old beahavior were we destroy and recreate the window when toggling between fullscreen and windowed mode. Signed-off-by: Henrik Andersson <hean01@cendio.com>
This commit is contained in:
parent
1f3d1fb3e0
commit
a6d82619ee
14
xwin.c
14
xwin.c
@ -2287,8 +2287,6 @@ xwin_toggle_fullscreen(void)
|
||||
{
|
||||
uint32 x, y, width, height;
|
||||
XWindowAttributes attr;
|
||||
XSetWindowAttributes setattr;
|
||||
unsigned long value_mask;
|
||||
Pixmap contents = 0;
|
||||
Window unused;
|
||||
int dest_x, dest_y;
|
||||
@ -2347,14 +2345,10 @@ xwin_toggle_fullscreen(void)
|
||||
}
|
||||
|
||||
/* Resize rdesktop window using new size and window attributes */
|
||||
XUnmapWindow(g_display, g_wnd);
|
||||
|
||||
XMoveResizeWindow(g_display, g_wnd, x, y, width, height);
|
||||
|
||||
value_mask = get_window_attribs(&setattr);
|
||||
XChangeWindowAttributes(g_display, g_wnd, value_mask, &setattr);
|
||||
|
||||
XMapWindow(g_display, g_wnd);
|
||||
g_xpos = x;
|
||||
g_ypos = y;
|
||||
ui_destroy_window();
|
||||
ui_create_window(width, height);
|
||||
|
||||
/* Change session size to match new window size */
|
||||
if (rdpedisp_is_available() == False)
|
||||
|
Loading…
Reference in New Issue
Block a user