https://bugs.documentfoundation.org/show_bug.cgi?id=100196
Bug ID: 100196
Summary: X11: top level windows should use NorthWest window
gravity
Product: LibreOffice
Version: 5.2.0.0.beta1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: graphics stack
Assignee: [email protected]
Reporter: [email protected]
Created attachment 125460
--> https://bugs.documentfoundation.org/attachment.cgi?id=125460&action=edit
Patch forcing NorthWest window gravity
X11 window gravity affects how windows are repositioned when their parent is
resized. Setting a libreoffice top-level window gravity to something other than
NorthWest means that the window will move relative to its parent when the
parent is resized.
By default, LibreOffice selects StaticGravity, which means that the application
window will not move relative to the screen as the parent is resized. So,
resizing the window to the right or down works "correctly", but resizing
leftwards or upwards moves the application window within the parent, leaving a
gap to the left or top of the application window within the frame.
Some window managers (metacity) smash the application window geometry to
NorthWest so that the application follows the window frame as it should. Others
do not adjust this value (xfwm4, twm), and so LibreOffice "breaks" in those
environments. That's why this problem doesn't appear on every desktop.
I found at least four bug reports about this issue:
http://www.linuxquestions.org/questions/linux-desktop-74/strange-libreoffice-problem-on-debian-with-xfce-4175469847/
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/889212
https://bbs.archlinux.org/viewtopic.php?id=133137
http://forums.debian.net/viewtopic.php?f=6&t=10575
Note that there *is* a useful window gravity value in the WM_NORMAL_HINTS for
the application. LibreOffice has a separate parameter for this, and in that
case, StaticGravity is a reasonable default as it allows LibreOffice to
position toolbars and other contents on the screen without needing to adjust
for the window manager frame size.
The patch enclosed forces window gravity to NorthWest for all windows in all
cases. I can't imagine where this wouldn't be correct, but I haven't reviewed
all of the code using this function.
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs