fix: build fail for non xwayland

This commit is contained in:
DreamMaoMao 2025-08-04 10:40:29 +08:00
parent 692b7f867c
commit 47809c5783
2 changed files with 14 additions and 9 deletions

View file

@ -456,3 +456,15 @@ static inline int client_wants_fullscreen(Client *c) {
#endif
return c->surface.xdg->toplevel->requested.fullscreen;
}
static inline bool client_request_minimize(Client *c, void *data) {
#ifdef XWAYLAND
if (client_is_x11(c)) {
struct wlr_xwayland_minimize_event *event = data;
return event->minimize;
}
#endif
return c->surface.xdg->toplevel->requested.minimized;
}