Toggle fullscreen

This commit is contained in:
Stivvo 2020-09-04 14:04:19 +02:00 committed by Guido Cella
parent 0f04c76387
commit dd3920e75d

2
dwl.c
View File

@ -1045,7 +1045,7 @@ destroyxdeco(struct wl_listener *listener, void *data)
void void
fullscreenotify(struct wl_listener *listener, void *data) { fullscreenotify(struct wl_listener *listener, void *data) {
Client *c = wl_container_of(listener, c, fullscreen); Client *c = wl_container_of(listener, c, fullscreen);
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, true); wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, !c->surface.xdg->toplevel->current.fullscreen);
} }
Monitor * Monitor *