mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 06:50:07 +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
|
// If the GPU acceleration is enabled on this window we avoid
|
||||||
// copying regions of pixels as it's super slow to read GPU
|
// copying regions of pixels as it's super slow to read GPU
|
||||||
// surfaces.
|
// 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;
|
use_blit = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user