mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-01 10:13:22 +00:00
[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:
parent
2e58e70f1c
commit
9fb0ee620c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user