]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: Process move-only client configure requests more quickly
authorJohn Lindgren <john@jlindgren.net>
Mon, 18 Jul 2022 03:42:04 +0000 (23:42 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 18 Jul 2022 21:06:12 +0000 (22:06 +0100)
commit065c37d3f5eed86dc218c9722e245fa5fda9bd75
treeed1661dc5c23e331496fb648ea8a883058c9ef57
parenta0a5cf706e224b66182e3ca8f12c82ac7be54af3
xwayland: Process move-only client configure requests more quickly

For a move-only client configure request, treat it similarly to
view_move() by updating the scene-graph immediately, rather than waiting
for handle_commit().  Move-and-resize requests are handled the same as
before.

This (mostly?) fixes the glitchiness that was noticeable when dragging
an undecorated XWayland window (e.g. Audacious in Winamp mode).

Also:

- Reduce some code duplication in handle_request_configure() by
  simply calling configure(), as suggested by @johanmalm in #428.
- Factor out common logic after a move and/or resize into view_moved().
include/labwc.h
src/view.c
src/xdg.c
src/xwayland.c