! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window sometimes jumps to left when unmaximized by dragging (depending on size)
Status:
RESOLVED: FIXED

Comments

Description Adam Purkrt 2018-01-20 00:23:47 CET
Created attachment 7546 
big-window-jumps-to-left-bad.mkv

1) start any app (e.g. thunar), make its width two thirds of the screenwidth
2) maximize it by dragging the middle of the titlebar to the center of the top
3) unmaximize it by dragging it from the center down
4) the window jumps to left upon unmaximization.

If the same is done with window narrower than 1/2 the screenwidth, the window (and the mouse grip) is correctly kept in the center.
Comment 1 Adam Purkrt 2018-01-20 00:24:24 CET
Created attachment 7547 
small-window-kept-centered-ok.mkv
Comment 2 Adam Purkrt 2018-01-20 00:32:20 CET
Created attachment 7548 
Keep grip proportionally fixed

To keep the distance of the grip from the edges of the window proportional,
the grip is always recalculated using pxratio and pyratio during unmaximization/untiling.
Comment 3 Adam Purkrt 2018-01-20 07:54:55 CET
Created attachment 7549 
0001-Keep-grip-in-proportion.patch

Better version of the patch.

To keep the distance of the grip from the edges of the window in proportion when unmaximizing/untiling while moving the window, the grip position is recalculated using pxratio and pyratio.
Comment 4 Git Bot editbugs 2018-01-21 17:05:26 CET
Adam Purkrt referenced this bugreport in commit 315e1bea2f10263c9d3f3d64fb8233abc69b194d

Keep grip in proportion

https://git.xfce.org/xfce/xfwm4/commit?id=315e1bea2f10263c9d3f3d64fb8233abc69b194d

Bug #14174

Reported by:
Adam Purkrt
Reported on: 2018-01-20
Last modified on: 2018-01-21

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Version:
unspecified

Attachments

big-window-jumps-to-left-bad.mkv (177.13 KB, video/x-matroska)
2018-01-20 00:23 CET , Adam Purkrt
no flags
small-window-kept-centered-ok.mkv (177.05 KB, video/x-matroska)
2018-01-20 00:24 CET , Adam Purkrt
no flags
Keep grip proportionally fixed (3.87 KB, patch)
2018-01-20 00:32 CET , Adam Purkrt
no flags
0001-Keep-grip-in-proportion.patch (3.85 KB, patch)
2018-01-20 07:54 CET , Adam Purkrt
no flags

Additional information