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 213b5a9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,15 @@ 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_display_control_monitor_layout_data: 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 213b5a9

Please sign in to comment.