Set fullscreen simpler
This commit is contained in:
parent
2b286ffeed
commit
172bcfd3ff
8
dwl.c
8
dwl.c
|
@ -708,16 +708,16 @@ void
|
||||||
setfullscreen(Client *c, int fullscreen)
|
setfullscreen(Client *c, int fullscreen)
|
||||||
{
|
{
|
||||||
c->isfullscreen = fullscreen;
|
c->isfullscreen = fullscreen;
|
||||||
|
c->bw = (1 - fullscreen) * borderpx;
|
||||||
|
|
||||||
#ifdef XWAYLAND
|
#ifdef XWAYLAND
|
||||||
if (c->type == X11Managed)
|
if (c->type == X11Managed)
|
||||||
wlr_xwayland_surface_set_fullscreen(c->surface.xwayland, c->isfullscreen);
|
wlr_xwayland_surface_set_fullscreen(c->surface.xwayland, fullscreen);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, c->isfullscreen);
|
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen);
|
||||||
|
|
||||||
c->bw = ((int)(!c->isfullscreen)) * borderpx;
|
if (fullscreen) {
|
||||||
if (c->isfullscreen) {
|
|
||||||
c->prevx = c->geom.x;
|
c->prevx = c->geom.x;
|
||||||
c->prevy = c->geom.y;
|
c->prevy = c->geom.y;
|
||||||
c->prevheight = c->geom.height;
|
c->prevheight = c->geom.height;
|
||||||
|
|
Loading…
Reference in a new issue