The original patch is large due to some code refactoring. Here is a more minimal patch that just shows the functional changes without the refactoring.
You can see the patch: a) Adds a routine to check the scanout size b) Adds code to cleanup the large_inactive and scanout lists in a couple places c) Loops the check for pending events ** Patch added: "sna-flush-scanout-cache-after-resizing.patch" https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1157678/+attachment/3648585/+files/sna-flush-scanout-cache-after-resizing.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1157678 Title: [ffe] unplugging an external monitor from laptop results in corrupted screen. Logging out fixes it. To manage notifications about this bug go to: https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1157678/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs