Skip to content

Commit c28fff5

Browse files
committed
always notify on size changes
this ensures that randr updates its private structures
1 parent fd5d957 commit c28fff5

File tree

1 file changed

+1
-7
lines changed
  • nx-X11/programs/Xserver/hw/nxagent

1 file changed

+1
-7
lines changed

nx-X11/programs/Xserver/hw/nxagent/Screen.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,7 +3674,6 @@ RRModePtr nxagentRRCustomMode = NULL;
36743674
*/
36753675
void nxagentAdjustCustomMode(ScreenPtr pScreen)
36763676
{
3677-
int doNotify = TRUE;
36783677
rrScrPrivPtr pScrPriv = rrGetScrPriv(pScreen);
36793678
RROutputPtr output;
36803679

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

37363735
RROutputChanged(output, 1);
3737-
3738-
doNotify = FALSE;
37393736
}
37403737

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

3747-
if (doNotify)
3748-
{
3749-
RRScreenSizeNotify(pScreen);
3750-
}
3744+
RRScreenSizeNotify(pScreen);
37513745
}
37523746

37533747
int nxagentChangeScreenConfig(int screen, int width, int height, int mmWidth, int mmHeight)

0 commit comments

Comments
 (0)