xfreerdp-client: keep track of scaled dimentions

This commit is contained in:
C-o-r-E 2013-05-14 11:20:26 -04:00
parent 5af958b738
commit 4a89436b1c
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,9 @@ BOOL xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym)
size_hints->min_height = size_hints->max_height = zoom_height;
XSetWMNormalHints(xfi->display, xfi->window->handle, size_hints);
XResizeWindow(xfi->display, xfi->window->handle, zoom_width, zoom_height);
xfi->currentWidth = zoom_width;
xfi->currentHeight = zoom_height;
XFree(size_hints);
}
}
@ -287,6 +290,9 @@ BOOL xf_kbd_handle_special_keys(xfInfo* xfi, KeySym keysym)
size_hints->min_height = size_hints->max_height = zoom_height;
XSetWMNormalHints(xfi->display, xfi->window->handle, size_hints);
XResizeWindow(xfi->display, xfi->window->handle, zoom_width, zoom_height);
xfi->currentWidth = zoom_width;
xfi->currentHeight = zoom_height;
XFree(size_hints);
}
}