Skip to content

Commit

Permalink
Block resize if already this size.
Browse files Browse the repository at this point in the history
While this feature is part of other branches for testing EGFX
integration, it somehow never made it into devel. This should fix
neutrinolabs#1928, for real this time!
  • Loading branch information
Nexarian committed Jul 2, 2022
1 parent eeb5daa commit 669f862
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,17 @@ process_dynamic_monitor_description(struct xrdp_wm *wm,
description->session_width, description->session_height);
return 0;
}
if (description->session_width
== wm->client_info->display_sizes.session_width
&& description->session_height
== wm->client_info->display_sizes.session_height)
{
LOG(LOG_LEVEL_WARNING, "process_dynamic_monitor_description:"
" Not resizing. Already this size. (w: %d x h: %d)",
description->session_width,
description->session_height);
return 0;
}

// TODO: Unify this logic with server_reset
error = libxrdp_reset(wm->session,
Expand Down

0 comments on commit 669f862

Please sign in to comment.