Skip to content

Commit

Permalink
Fix FreeRDP#8176: Check fullscreen state and not setting
Browse files Browse the repository at this point in the history
Timer based dynamic resolution updates are disabled in fullscreen
state. Check current value and not (permanent) setting
  • Loading branch information
akallabeth authored and mihainradu committed Dec 7, 2022
1 parent d65e22b commit ad2a464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/X11/xf_disp.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static BOOL xf_update_last_sent(xfDispContext* xfDisp)

static BOOL xf_disp_sendResize(xfDispContext* xfDisp)
{
DISPLAY_CONTROL_MONITOR_LAYOUT layout;
DISPLAY_CONTROL_MONITOR_LAYOUT layout = { 0 };
xfContext* xfc;
rdpSettings* settings;

Expand Down Expand Up @@ -264,7 +264,7 @@ static void xf_disp_OnTimer(void* context, const TimerEventArgs* e)
if (!xf_disp_check_context(context, &xfc, &xfDisp, &settings))
return;

if (!xfDisp->activated || settings->Fullscreen)
if (!xfDisp->activated || xfc->fullscreen)
return;

xf_disp_sendResize(xfDisp);
Expand Down

0 comments on commit ad2a464

Please sign in to comment.