]> git.mdlowis.com Git - proto/labwc.git/commit
src/xdg.c: sync move with pending resize
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sun, 12 Feb 2023 06:44:01 +0000 (07:44 +0100)
committerJohn Lindgren <john@jlindgren.net>
Mon, 13 Feb 2023 16:30:15 +0000 (11:30 -0500)
commitecd03b70ef93616b0de73b795a5c05180dadcc3c
treeafe4da460bd94ed35a6073f41e8cdfb412678c9f
parent06e077134163b3768c64a7e40c75fed523e6b011
src/xdg.c: sync move with pending resize

Before this patch, configuring a surface with a new size,
immediately followed up by one or more view_move() calls
would move the surface to the new coordinates immediately
without waiting for the resize. This caused visual glitches
when for example dragging a maximized window: the position
would change but the size was still that of a maximized
window.

This patch fixes that by just ignoring view_move() requests
(but still updating view->pending) if there is a configure
request pending. Once the client commit comes in the new
size will be applied as usual.
src/xdg.c