diff options
| author | Stivvo <stivvo01@gmail.com> | 2020-10-08 21:04:28 +0200 | 
|---|---|---|
| committer | Guido Cella <guido@guidocella.xyz> | 2020-12-19 18:06:11 +0100 | 
| commit | 02a09cb85414df8002c61bd072c5870ab4f6a485 (patch) | |
| tree | dc3c8ff695c91c92ef217982900d5471dae6b437 /dwl.c | |
| parent | cb9269df41c66cbd871fc9bc73657e736bee6a0d (diff) | |
Set fullscreen simpler
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -1081,16 +1081,16 @@ void  setfullscreen(Client *c, int fullscreen)  {  	c->isfullscreen = fullscreen; +	c->bw = (1 - fullscreen) * borderpx;  #ifdef XWAYLAND  	if (c->type == X11Managed) -		wlr_xwayland_surface_set_fullscreen(c->surface.xwayland, c->isfullscreen); +		wlr_xwayland_surface_set_fullscreen(c->surface.xwayland, fullscreen);  	else  #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 (c->isfullscreen) { +	if (fullscreen) {  		c->prevx = c->geom.x;  		c->prevy = c->geom.y;  		c->prevheight = c->geom.height; | 
