Skip to content
  • Jasper St. Pierre's avatar
    gdkwindow: Remove the ability to call begin_paint_region more than once · be30e440
    Jasper St. Pierre authored
    Previously, each begin_paint_region added to a stack of current paints,
    and when end_paint was called, the paint was popped off of the stack and
    the surface was composited into the parent paint surface.
    
    However, the code was broken in the case of a backend like Wayland which
    didn't keep track of nested calls and simply wiped and returned the
    native impl backing surface every time.
    
    Since this feature is flat out unused by GTK+ and we don't want to
    really support tricksy things like these for other clients, just remove
    the feature. If somebody does call begin_paint_region more than once,
    warn and return without doing anything.
    be30e440