• Romain Vimont's avatar
    qt: prevent window jumps on resize (X11) · d7fec54b
    Romain Vimont authored
    On X11 with Qt < 5.10, a resize request invoked XMoveResizeWindow() (see
    0285ba4e), which both moves and resizes.
    To avoid moving, it was called with the current geometry() coordinates
    as position arguments.
    
    However, the calculated position may be wrong when several displays have
    a different devicePixelRatio(). As a consequence, on a secondary
    display, every (automatic) resize of the window made it jump to
    unexpected locations.
    
    To avoid the problem, just call XResizeWindow(), so that the window is
    not moved at all.
    Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
    d7fec54b
Name
Last commit
Last update
autotools Loading commit data...
bin Loading commit data...
compat Loading commit data...
contrib Loading commit data...
doc Loading commit data...
extras Loading commit data...
include Loading commit data...
lib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
po Loading commit data...
share Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
INSTALL Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
THANKS Loading commit data...
bootstrap Loading commit data...
configure.ac Loading commit data...
make-alias Loading commit data...