You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.6 KiB
49 lines
1.6 KiB
5 years ago
|
--- b/module/rdp.h
|
||
|
+++ a/module/rdp.h
|
||
|
@@ -270,7 +270,6 @@
|
||
|
RROutputGetPropertyProcPtr rrOutputGetProperty;
|
||
|
RRGetPanningProcPtr rrGetPanning;
|
||
|
RRSetPanningProcPtr rrSetPanning;
|
||
|
- int allow_screen_resize;
|
||
|
|
||
|
int listen_sck;
|
||
|
char uds_data[256];
|
||
|
--- b/module/rdpClientCon.c
|
||
|
+++ a/module/rdpClientCon.c
|
||
|
@@ -746,9 +746,7 @@
|
||
|
|
||
|
if ((dev->width != width) || (dev->height != height))
|
||
|
{
|
||
|
- dev->allow_screen_resize = 1;
|
||
|
ok = RRScreenSizeSet(dev->pScreen, width, height, mmwidth, mmheight);
|
||
|
- dev->allow_screen_resize = 0;
|
||
|
LLOGLN(0, ("rdpClientConProcessScreenSizeMsg: RRScreenSizeSet ok=[%d]", ok));
|
||
|
RRTellChanged(dev->pScreen);
|
||
|
}
|
||
|
--- b/module/rdpRandR.c
|
||
|
+++ a/module/rdpRandR.c
|
||
|
@@ -127,11 +127,6 @@
|
||
|
LLOGLN(0, ("rdpRRScreenSetSize: width %d height %d mmWidth %d mmHeight %d",
|
||
|
width, height, (int)mmWidth, (int)mmHeight));
|
||
|
dev = rdpGetDevFromScreen(pScreen);
|
||
|
- if (dev->allow_screen_resize == 0)
|
||
|
- {
|
||
|
- LLOGLN(0, ("rdpRRScreenSetSize: not allowing resize"));
|
||
|
- return FALSE;
|
||
|
- }
|
||
|
root = rdpGetRootWindowPtr(pScreen);
|
||
|
if ((width < 1) || (height < 1))
|
||
|
{
|
||
|
--- b/xrdpdev/xrdpdev.c
|
||
|
+++ a/xrdpdev/xrdpdev.c
|
||
|
@@ -359,9 +359,7 @@
|
||
|
if ((dev->width != width) || (dev->height != height))
|
||
|
{
|
||
|
LLOGLN(0, (" calling RRScreenSizeSet"));
|
||
|
- dev->allow_screen_resize = 1;
|
||
|
ok = RRScreenSizeSet(dev->pScreen, width, height, mmwidth, mmheight);
|
||
|
- dev->allow_screen_resize = 0;
|
||
|
LLOGLN(0, (" RRScreenSizeSet ok %d", ok));
|
||
|
}
|
||
|
return ok;
|