1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:47:34 +00:00

WindowServer: Show downscaled window thumbnails in the window switcher.

This commit is contained in:
Andreas Kling 2019-05-12 04:15:25 +02:00
parent 641d55c7ef
commit 23e6c45e87
3 changed files with 38 additions and 4 deletions

View file

@ -8,6 +8,7 @@
#include <WindowServer/WSAPITypes.h>
#include <WindowServer/WSClipboard.h>
#include <WindowServer/WSScreen.h>
#include <WindowServer/WSWindowSwitcher.h>
#include <SharedBuffer.h>
#include <sys/ioctl.h>
#include <sys/uio.h>
@ -550,6 +551,8 @@ void WSClientConnection::handle_request(const WSAPIDidFinishPaintingNotification
auto& window = *(*it).value;
for (auto& rect : request.rects())
WSWindowManager::the().invalidate(window, rect);
WSWindowSwitcher::the().refresh_if_needed();
}
void WSClientConnection::handle_request(const WSAPIGetWindowBackingStoreRequest& request)