https://bugs.kde.org/show_bug.cgi?id=449105

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/11a5513e78
                   |                            |9e2bd9a99f19d2b8477ca4700ab
                   |                            |46d
         Resolution|---                         |FIXED

--- Comment #43 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 11a5513e789e2bd9a99f19d2b8477ca4700ab46d by Vlad Zahorodnii.
Committed on 15/03/2024 at 18:00.
Pushed by vladz into branch 'master'.

Avoid moving the window while it's maximized

Unlike X11, on Wayland, the window won't change its maximize mode until
it renders a new buffer. This creates a problem for interactive move
because if it's not careful and moves the window while it's still effectively
maximized, it will look as if the window has leaked to other screens.

This change fixes the problem by making Window::handleInteractiveMoveResize()
avoid move() if the window needs to be unmaximized.

As a bonus, it also allows to unmaximize the windows that are maximized
along only one dimension by dragging them.

Unfortunately, tiling stuff still suffers from the same issue. In order
to fix it, Window::tile() has to be part of double buffered state, like
Window::maximizeMode().
Related: bug 459218, bug 482085

M  +1    -0    autotests/integration/kwin_wayland_test.h
M  +18   -0    autotests/integration/test_helpers.cpp
M  +312  -0    autotests/integration/xdgshellwindow_test.cpp
M  +28   -13   src/window.cpp
M  +9    -0    src/x11window.cpp
M  +11   -0    src/xdgshellwindow.cpp

https://invent.kde.org/plasma/kwin/-/commit/11a5513e789e2bd9a99f19d2b8477ca4700ab46d

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to