sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c4b900c1e04ec45b481a3f05870d8b4a6c49e386
parent 1579fc1d91468ce4d29701b4b1c8be6e635f21ff
Author: Armin Preiml <apreiml@strohwolke.at>
Date:   Wed, 27 Jun 2018 17:48:36 +0200

fix accidently removing borders on XCB_CONFIGURE_REQUEST

The view was configured with the container coordinates.
Although they were right on the first configure, they
changed after a XCB_CONFIGURE_REQUEST, when the
border was already drawn.

Diffstat:
Msway/desktop/xwayland.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c @@ -335,9 +335,9 @@ static void handle_request_configure(struct wl_listener *listener, void *data) { return; } if (container_is_floating(view->swayc)) { - configure(view, view->swayc->x, view->swayc->y, ev->width, ev->height); + configure(view, view->x, view->y, ev->width, ev->height); } else { - configure(view, view->swayc->x, view->swayc->y, + configure(view, view->x, view->y, view->width, view->height); } }