mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 19:26:32 +00:00
Set fullscreen simpler
This commit is contained in:
parent
cb9269df41
commit
02a09cb854
1 changed files with 4 additions and 4 deletions
8
dwl.c
8
dwl.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue