• Keith Packard's avatar
    present: Make window MSC offset 0 initially · 627bce80
    Keith Packard authored
    The MSC offset used by a window is adjusted as the window moves
    between screens, and between shown/unshown. The value shouldn't
    matter, but it's helpful for debugging to have window MSC values be
    the same as the CRTC MSC at first.
    
    This patch introduces a unique CRTC value so that Present can detect
    the first time a window is a PresentPixmap destination and set the MSC
    offset to zero, rather than using the fake MSC value as the previous
    window MSC.
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    627bce80
present_screen.c 7.05 KB