Skip to content
  • Dave Airlie's avatar
    composite: use config notify hook to do pixmap resize. · 959a1eaf
    Dave Airlie authored and Keith Packard's avatar Keith Packard committed
    
    
    Since reallocating the backing pixmap can fail, we need to try and do
    it before any other side effects of reconfiguring the window happen.
    
    This changes the ConfigNotify hook to return status, and moves the
    composite window reconfiguration wrappers to ConfigNotify. They all
    basically did the same thing, so we can drop the MoveWindow,
    ResizeWindow, ChangeBorderWidth wrappers, and allow ConfigNotify to do
    all the work. If reallocation fails we fail before we send any
    confiureNotify events, or enter the area we can't recover from.
    
    The only place we now enforce 32k limits are in EXA/UXA/fb, so drivers
    that don't use this should probably deal with it in their pixmap
    allocate if they don't already.
    
    This also breaks ABI, so we need an alternate fix for older servers,
    working on the X server makes me realise why I'm a kernel hacker.
    
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    Reviewed-by: default avatarKeith Packard <keithp@keithp.com>
    Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
    959a1eaf