• Carlos Garnacho's avatar
    wayland: Ensure pointer constraint region consistency · 98ef6d0d
    Carlos Garnacho authored
    Changes in games between fullscreen and windowed modes may trigger
    chaotic situations where the buffer and the frame size temporarily
    disagree, producing rectangles with negative width/height. This is
    usually followed by other updates that bring the pointer constraint
    up to date.
    This makes cairo panic and return an "error" empty region, which breaks
    deeper down when using the region rectangles to apply the pointer
    If we hit this situation, ignore the frame rectangle, and just go with
    the buffer rectangle.
    Part-of: <!1655>
meta-wayland-pointer-constraints.c 38.2 KB