mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
Merge pull request #10490 from akallabeth/desktop-resize-deadlock
Desktop resize deadlock
This commit is contained in:
commit
7fe1164d26
@ -458,12 +458,14 @@ static BOOL xf_sw_desktop_resize(rdpContext* context)
|
|||||||
xfContext* xfc = (xfContext*)context;
|
xfContext* xfc = (xfContext*)context;
|
||||||
rdpSettings* settings = context->settings;
|
rdpSettings* settings = context->settings;
|
||||||
BOOL ret = FALSE;
|
BOOL ret = FALSE;
|
||||||
xf_lock_x11(xfc);
|
|
||||||
|
|
||||||
if (!gdi_resize(gdi, freerdp_settings_get_uint32(settings, FreeRDP_DesktopWidth),
|
if (!gdi_resize(gdi, freerdp_settings_get_uint32(settings, FreeRDP_DesktopWidth),
|
||||||
freerdp_settings_get_uint32(settings, FreeRDP_DesktopHeight)))
|
freerdp_settings_get_uint32(settings, FreeRDP_DesktopHeight)))
|
||||||
goto out;
|
return FALSE;
|
||||||
|
|
||||||
|
/* Do not lock during gdi_resize, there might still be drawing operations in progress.
|
||||||
|
* locking will deadlock. */
|
||||||
|
xf_lock_x11(xfc);
|
||||||
if (xfc->image)
|
if (xfc->image)
|
||||||
{
|
{
|
||||||
xfc->image->data = NULL;
|
xfc->image->data = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user