]> git.mdlowis.com Git - proto/labwc.git/commit
(Partly) fix handling of client-initiated configure requests
authorJohn Lindgren <john@jlindgren.net>
Sat, 2 Jul 2022 17:18:31 +0000 (13:18 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sun, 3 Jul 2022 11:59:36 +0000 (12:59 +0100)
commit80792d446f64a7ed01b04e39e11018b904413533
treedd2764e4041c0b5e915dcfd7d0437d0a6882b28f
parent3c345201cd62af482b91a2f227fa5457846e0999
(Partly) fix handling of client-initiated configure requests

- Add missing call to wlr_scene_node_set_position() in
  unmanaged_handle_commit() -- this fixes moving unmanaged XWayland
  windows.

- Update view->pending_move_resize when we receive a configure request
  for a managed XWayland surface -- this fixes moving managed but
  undecorated XWayland windows.

- Also update view->pending_move_resize when we move a surface while a
  configure request is already pending -- this fixes a discrepancy
  between displayed and actual position for XWayland windows that try to
  set their own initial position, but then get overridden by labwc's
  positioning.

Moving undecorated XWayland windows is still really glitchy -- it appears
that an XWayland window gets sent incorrect mouse motion coordinates when
there is a pending configure request moving the window itself.
include/labwc.h
src/xwayland-unmanaged.c
src/xwayland.c