mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 03:18:04 +02:00
dix/randr: Add missing fields to SRR*NotifyEvent()
Also, remove redundant field swaps and make others match the order in which
they are declared in the xRR*NotifyEvent structs.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit e244a5991e)
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
f697b6c582
commit
d98f2792d2
1 changed files with 9 additions and 2 deletions
|
|
@ -117,11 +117,11 @@ SRRScreenChangeNotifyEvent(xRRScreenChangeNotifyEvent *from,
|
|||
cpswapl(from->root, to->root);
|
||||
cpswapl(from->window, to->window);
|
||||
cpswaps(from->sizeID, to->sizeID);
|
||||
cpswaps(from->subpixelOrder, to->subpixelOrder);
|
||||
cpswaps(from->widthInPixels, to->widthInPixels);
|
||||
cpswaps(from->heightInPixels, to->heightInPixels);
|
||||
cpswaps(from->widthInMillimeters, to->widthInMillimeters);
|
||||
cpswaps(from->heightInMillimeters, to->heightInMillimeters);
|
||||
cpswaps(from->subpixelOrder, to->subpixelOrder);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -135,8 +135,8 @@ SRRCrtcChangeNotifyEvent(xRRCrtcChangeNotifyEvent *from,
|
|||
cpswapl(from->window, to->window);
|
||||
cpswapl(from->crtc, to->crtc);
|
||||
cpswapl(from->mode, to->mode);
|
||||
cpswapl(from->window, to->window);
|
||||
cpswaps(from->rotation, to->rotation);
|
||||
/* pad1 */
|
||||
cpswaps(from->x, to->x);
|
||||
cpswaps(from->y, to->y);
|
||||
cpswaps(from->width, to->width);
|
||||
|
|
@ -157,6 +157,8 @@ SRROutputChangeNotifyEvent(xRROutputChangeNotifyEvent *from,
|
|||
cpswapl(from->crtc, to->crtc);
|
||||
cpswapl(from->mode, to->mode);
|
||||
cpswaps(from->rotation, to->rotation);
|
||||
to->connection = from->connection;
|
||||
to->subpixelOrder = from->subpixelOrder;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -170,6 +172,11 @@ SRROutputPropertyNotifyEvent(xRROutputPropertyNotifyEvent *from,
|
|||
cpswapl(from->output, to->output);
|
||||
cpswapl(from->atom, to->atom);
|
||||
cpswapl(from->timestamp, to->timestamp);
|
||||
to->state = from->state;
|
||||
/* pad1 */
|
||||
/* pad2 */
|
||||
/* pad3 */
|
||||
/* pad4 */
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue