Skip to content

Commit

Permalink
always notify on size changes
Browse files Browse the repository at this point in the history
this ensures that randr updates its private structures
  • Loading branch information
uli42 committed Jul 13, 2017
1 parent fd5d957 commit c28fff5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions nx-X11/programs/Xserver/hw/nxagent/Screen.c
Expand Up @@ -3674,7 +3674,6 @@ RRModePtr nxagentRRCustomMode = NULL;
*/
void nxagentAdjustCustomMode(ScreenPtr pScreen)
{
int doNotify = TRUE;
rrScrPrivPtr pScrPriv = rrGetScrPriv(pScreen);
RROutputPtr output;

Expand Down Expand Up @@ -3734,8 +3733,6 @@ void nxagentAdjustCustomMode(ScreenPtr pScreen)
RRCrtcSet(crtc, nxagentRRCustomMode, 0, 0, RR_Rotate_0, 1, &output);

RROutputChanged(output, 1);

doNotify = FALSE;
}

pScrPriv -> lastSetTime = currentTime;
Expand All @@ -3744,10 +3741,7 @@ void nxagentAdjustCustomMode(ScreenPtr pScreen)
pScrPriv->configChanged = 1;
} /* if (pScrPriv) */

if (doNotify)
{
RRScreenSizeNotify(pScreen);
}
RRScreenSizeNotify(pScreen);
}

int nxagentChangeScreenConfig(int screen, int width, int height, int mmWidth, int mmHeight)
Expand Down

0 comments on commit c28fff5

Please sign in to comment.