mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-27 06:59:58 -05:00
fix: build fail for non xwayland
This commit is contained in:
parent
692b7f867c
commit
47809c5783
2 changed files with 14 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue