mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-17 19:30:33 +01:00
randr: make SetChanged modify the main protocol screen not the gpu screen
When SetChanged is called we now modify the main protocol screen, not the the gpu screen. Since changed stuff should work at the protocol level. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
0454e44851
commit
61df3350d0
1 changed files with 15 additions and 1 deletions
|
|
@ -467,9 +467,23 @@ TellChanged(WindowPtr pWin, pointer value)
|
|||
void
|
||||
RRSetChanged(ScreenPtr pScreen)
|
||||
{
|
||||
/* set changed bits on the master screen only */
|
||||
ScreenPtr master;
|
||||
rrScrPriv(pScreen);
|
||||
rrScrPrivPtr mastersp;
|
||||
|
||||
pScrPriv->changed = TRUE;
|
||||
if (pScreen->isGPU) {
|
||||
master = pScreen->current_master;
|
||||
if (!master)
|
||||
return;
|
||||
mastersp = rrGetScrPriv(master);
|
||||
}
|
||||
else {
|
||||
master = pScreen;
|
||||
mastersp = pScrPriv;
|
||||
}
|
||||
|
||||
mastersp->changed = TRUE;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue