[x11] Don't use ui::move_region() to move windows on X11

It's quite slow, it's faster just to repaint the background.
This commit is contained in:
David Capello 2024-06-18 15:24:12 -03:00
parent 2e58e70f1c
commit 9fb0ee620c

View File

@ -848,7 +848,12 @@ void Window::moveWindow(const gfx::Rect& rect, bool use_blit)
// If the GPU acceleration is enabled on this window we avoid
// copying regions of pixels as it's super slow to read GPU
// surfaces.
if (display()->nativeWindow()->gpuAcceleration()) {
if (display()->nativeWindow()->gpuAcceleration()
#if LAF_LINUX
// On X11 it's better to avoid copying screen areas
|| true
#endif
) {
use_blit = false;
}