diff options
author | emersion <contact@emersion.fr> | 2018-07-02 20:24:17 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-06 19:31:44 +0100 |
commit | 47d56306c3c0578daf705e1421b79791be85428e (patch) | |
tree | 15189f5ba70fc800f850591864425b1ecd7a3ee2 | |
parent | Merge pull request #2206 from martinetd/leaks (diff) | |
download | sway-47d56306c3c0578daf705e1421b79791be85428e.tar.gz sway-47d56306c3c0578daf705e1421b79791be85428e.tar.zst sway-47d56306c3c0578daf705e1421b79791be85428e.zip |
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
-rw-r--r-- | sway/desktop/xwayland.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index 0669a485..ace290ef 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) { | |||
284 | transaction_notify_view_ready_by_size(view, | 284 | transaction_notify_view_ready_by_size(view, |
285 | surface_state->width, surface_state->height); | 285 | surface_state->width, surface_state->height); |
286 | } | 286 | } |
287 | |||
288 | if (container_is_floating(view->swayc)) { | ||
289 | view_update_size(view, surface_state->width, surface_state->height); | ||
290 | } | ||
291 | |||
287 | view_damage_from(view); | 292 | view_damage_from(view); |
288 | } | 293 | } |
289 | 294 | ||