Skip to content

Commit

Permalink
fix(xserver): fixing RRCrtcSet without mode requests.
Browse files Browse the repository at this point in the history
Fixes #702.
  • Loading branch information
twaik authored Nov 27, 2024
1 parent 0777093 commit 3f15378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/cpp/lorie/InitOutput.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ lorieRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height, unused CARD
static Bool
lorieRRCrtcSet(unused ScreenPtr pScreen, RRCrtcPtr crtc, RRModePtr mode, int x, int y,
Rotation rotation, int numOutput, RROutputPtr *outputs) {
return RRCrtcNotify(crtc, mode, x, y, rotation, NULL, numOutput, outputs);
return (crtc && mode) ? RRCrtcNotify(crtc, mode, x, y, rotation, NULL, numOutput, outputs) : FALSE;
}

static Bool
Expand Down

0 comments on commit 3f15378

Please sign in to comment.