forked from mirror/dwl
isfullscreen int
This commit is contained in:
parent
bd222cb75d
commit
73d717a924
1 changed files with 5 additions and 4 deletions
9
dwl.c
9
dwl.c
|
@ -110,7 +110,7 @@ typedef struct {
|
||||||
int prevy;
|
int prevy;
|
||||||
int prevwidth;
|
int prevwidth;
|
||||||
int prevheight;
|
int prevheight;
|
||||||
bool isfullscreen;
|
int isfullscreen;
|
||||||
} Client;
|
} Client;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -608,7 +608,7 @@ createnotify(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
c->fullscreen.notify = fullscreenotify;
|
c->fullscreen.notify = fullscreenotify;
|
||||||
wl_signal_add(&xdg_surface->toplevel->events.request_fullscreen, &c->fullscreen);
|
wl_signal_add(&xdg_surface->toplevel->events.request_fullscreen, &c->fullscreen);
|
||||||
c->isfullscreen = false;
|
c->isfullscreen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -677,7 +677,8 @@ 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);
|
||||||
c->isfullscreen = !c->isfullscreen;
|
c->isfullscreen = !c->isfullscreen;
|
||||||
|
|
||||||
|
@ -1858,7 +1859,7 @@ createnotifyx11(struct wl_listener *listener, void *data)
|
||||||
|
|
||||||
c->fullscreen.notify = fullscreenotify;
|
c->fullscreen.notify = fullscreenotify;
|
||||||
wl_signal_add(&xwayland_surface->events.request_fullscreen, &c->fullscreen);
|
wl_signal_add(&xwayland_surface->events.request_fullscreen, &c->fullscreen);
|
||||||
c->isfullscreen = false;
|
c->isfullscreen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Atom
|
Atom
|
||||||
|
|
Loading…
Reference in a new issue