From 47d56306c3c0578daf705e1421b79791be85428e Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 2 Jul 2018 20:24:17 +0100 Subject: [PATCH] Fix xwayland floating views unclickable Some xwayland views are first configured with a 1x1 size, and then resized. Since the view size isn't updated, they are unclickable. Fixes #2195 --- sway/desktop/xwayland.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 0669a4853..ace290ef8 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c @@ -284,6 +284,11 @@ static void handle_commit(struct wl_listener *listener, void *data) { transaction_notify_view_ready_by_size(view, surface_state->width, surface_state->height); } + + if (container_is_floating(view->swayc)) { + view_update_size(view, surface_state->width, surface_state->height); + } + view_damage_from(view); }