Skip to content

Window: Don't set interactive move offset if the last saved geometry is invalid

Ser Freeman requested to merge sf/kwin:fix-wayland-maximize-restore into master

Refactore handleInteractiveMoveResize to make it possible to calculate new move/resize geometry without applying it. This will allow to resolve visual issues when the window gets moved by dragging when it's still in maximized state.

Don't set interactive move offset if the last saved geometry is invalid, which happens when the wayland window opens in a maximized state, and which leads to dragging position reset to the top left corner of the window. Instead, wait for a new window geometry from the client and then set the offset and calculate the correct dragging position.

BUG: 449105

Edited by Ser Freeman

Merge request reports