aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-12-07 17:59:07 +0300
committerKirill Primak <vyivel@eclair.cafe>2023-12-07 17:59:07 +0300
commit425f5c07fb87e2d3ee1bcb71a49d81b7c84c65ef (patch)
treec538e6b9eed59a2fd2fade7f7d531949a6aded7b
parent1cc7ab3e2927d6efb7659905ad4cdd37d816e436 (diff)
tinywl: check initialized instead of initial_commit
oops
-rw-r--r--tinywl/tinywl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c
index d620e682..603e4692 100644
--- a/tinywl/tinywl.c
+++ b/tinywl/tinywl.c
@@ -759,7 +759,7 @@ static void xdg_toplevel_request_maximize(
* anything and let the client finish the initial surface setup. */
struct tinywl_toplevel *toplevel =
wl_container_of(listener, toplevel, request_maximize);
- if (toplevel->xdg_toplevel->base->initial_commit) {
+ if (toplevel->xdg_toplevel->base->initialized) {
wlr_xdg_surface_schedule_configure(toplevel->xdg_toplevel->base);
}
}
@@ -769,7 +769,7 @@ static void xdg_toplevel_request_fullscreen(
/* Just as with request_maximize, we must send a configure here. */
struct tinywl_toplevel *toplevel =
wl_container_of(listener, toplevel, request_fullscreen);
- if (toplevel->xdg_toplevel->base->initial_commit) {
+ if (toplevel->xdg_toplevel->base->initialized) {
wlr_xdg_surface_schedule_configure(toplevel->xdg_toplevel->base);
}
}