Skip to content
  • Robert Bragg's avatar
    Add support for stacking X and Wayland windows together · 40e820f5
    Robert Bragg authored and Jasper St. Pierre's avatar Jasper St. Pierre committed
    This breaks down the assumptions in stack-tracker.c and stack.c that
    Mutter is only stacking X windows.
    
    The stack tracker now tracks windows using a MetaStackWindow structure
    which is a union with a type member so that X windows can be
    distinguished from Wayland windows.
    
    Some notable changes are:
    
    Queued stack tracker operations that affect Wayland windows will not be
    associated with an X serial number.
    
    If an operation only affects a Wayland window and there are no queued
    stack tracker operations ("unvalidated predictions") then the operation
    is applied immediately since there is no server involved with changing
    the stacking for Wayland windows.
    
    The stack tracker can no longer respond to X events by turning them into
    stack operations and discarding the predicted operations made prior to
    that event because operations based on X events don't know anything
    about the stacking of Wayland windows.
    
    Instead of discarding old predictions the new approach...
    40e820f5