mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
tinywl: check initialized instead of initial_commit
oops
This commit is contained in:
parent
1cc7ab3e29
commit
425f5c07fb
1 changed files with 2 additions and 2 deletions
|
@ -759,7 +759,7 @@ static void xdg_toplevel_request_maximize(
|
||||||
* anything and let the client finish the initial surface setup. */
|
* anything and let the client finish the initial surface setup. */
|
||||||
struct tinywl_toplevel *toplevel =
|
struct tinywl_toplevel *toplevel =
|
||||||
wl_container_of(listener, toplevel, request_maximize);
|
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);
|
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. */
|
/* Just as with request_maximize, we must send a configure here. */
|
||||||
struct tinywl_toplevel *toplevel =
|
struct tinywl_toplevel *toplevel =
|
||||||
wl_container_of(listener, toplevel, request_fullscreen);
|
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);
|
wlr_xdg_surface_schedule_configure(toplevel->xdg_toplevel->base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue