summaryrefslogtreecommitdiff
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-08-15 17:16:32 -0400
committerGitHub <[email protected]>2018-08-15 17:16:32 -0400
commit98ed05225e06618533fa0439fdc83463cb9f1d2e (patch)
treefa71845d227eb8c78a4eb283238498f3da25cf21 /sway/desktop/xwayland.c
parent647ace1d6de5abe4c469db2e4e9590e3ef2168b9 (diff)
parentc3ef36d6b5d36f783f41b8860cee321b652f91e3 (diff)
Merge pull request #2458 from RyanDwyer/cleanup-transactions
Simplify transactions
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 5e8afa65..14f59b9c 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -284,7 +284,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface;
struct wlr_surface_state *surface_state = &xsurface->surface->current;
- if (view->swayc->instructions->length) {
+ if (view->swayc->instruction) {
transaction_notify_view_ready_by_size(view,
surface_state->width, surface_state->height);
} else if (container_is_floating(view->swayc)) {