aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar Armin Preiml <apreiml@strohwolke.at>2018-06-27 17:48:36 +0200
committerLibravatar Armin Preiml <apreiml@strohwolke.at>2018-06-27 17:56:53 +0200
commitc4b900c1e04ec45b481a3f05870d8b4a6c49e386 (patch)
tree593896c7ecf5e6a75f5d2748ff561e651c65737f /sway/desktop/xwayland.c
parentMerge pull request #2168 from BlueGone/input-cmd-arg-nb (diff)
downloadsway-c4b900c1e04ec45b481a3f05870d8b4a6c49e386.tar.gz
sway-c4b900c1e04ec45b481a3f05870d8b4a6c49e386.tar.zst
sway-c4b900c1e04ec45b481a3f05870d8b4a6c49e386.zip
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 (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index eb39dc4b..df5f6698 100644
--- 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) {
335 return; 335 return;
336 } 336 }
337 if (container_is_floating(view->swayc)) { 337 if (container_is_floating(view->swayc)) {
338 configure(view, view->swayc->x, view->swayc->y, ev->width, ev->height); 338 configure(view, view->x, view->y, ev->width, ev->height);
339 } else { 339 } else {
340 configure(view, view->swayc->x, view->swayc->y, 340 configure(view, view->x, view->y,
341 view->width, view->height); 341 view->width, view->height);
342 } 342 }
343} 343}