mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 08:30:28 +01:00
XQuartz: Don't crash if CG increases our display resolution
miPaintWindow would cause fbFill() to overwrite pScreen's pixmap which was
sized for the old resolution.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
(cherry picked from commit 1fb501ad15)
This commit is contained in:
parent
dc6efd9988
commit
398114c148
1 changed files with 3 additions and 2 deletions
|
|
@ -239,8 +239,6 @@ void QuartzUpdateScreens(void) {
|
|||
AppleWMSetScreenOrigin(pRoot);
|
||||
pScreen->ResizeWindow(pRoot, x - sx, y - sy, width, height, NULL);
|
||||
|
||||
miPaintWindow(pRoot, &pRoot->borderClip, PW_BACKGROUND);
|
||||
|
||||
/* <rdar://problem/7770779> pointer events are clipped to old display region after display reconfiguration
|
||||
* http://xquartz.macosforge.org/trac/ticket/346
|
||||
*/
|
||||
|
|
@ -268,6 +266,9 @@ void QuartzUpdateScreens(void) {
|
|||
|
||||
quartzProcs->UpdateScreen(pScreen);
|
||||
|
||||
/* miPaintWindow needs to be called after RootlessUpdateScreenPixmap (from xprUpdateScreen) */
|
||||
miPaintWindow(pRoot, &pRoot->borderClip, PW_BACKGROUND);
|
||||
|
||||
/* Tell RandR about the new size, so new connections get the correct info */
|
||||
RRScreenSizeNotify(pScreen);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue