Readme: achieve fullscreen + allow borderpx = 0
This commit is contained in:
parent
1e134fde97
commit
14ce016213
2 changed files with 2 additions and 3 deletions
|
@ -70,7 +70,6 @@ dwl is a work in progress, and it has not yet reached its feature goals in a num
|
|||
- Urgent/attention/focus-request ([not yet supported](https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/9) by xdg-shell protocol)
|
||||
- Statusbar support (built-in or external)
|
||||
- Damage tracking
|
||||
- Fullscreen/fixed windows (or whatever the Wayland analogues are)
|
||||
|
||||
|
||||
## Acknowledgements
|
||||
|
|
4
dwl.c
4
dwl.c
|
@ -1073,6 +1073,7 @@ setfullscreen(Client *c, int fullscreen)
|
|||
#endif
|
||||
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen);
|
||||
|
||||
// restore previous size instead of arrange to work with floating windows
|
||||
if (fullscreen) {
|
||||
c->prevx = c->geom.x;
|
||||
c->prevy = c->geom.y;
|
||||
|
@ -1717,8 +1718,7 @@ renderclients(Monitor *m, struct timespec *now)
|
|||
ox = c->geom.x, oy = c->geom.y;
|
||||
wlr_output_layout_output_coords(output_layout, m->wlr_output,
|
||||
&ox, &oy);
|
||||
|
||||
if (c->isfullscreen)
|
||||
if (c->bw == 0)
|
||||
goto render;
|
||||
|
||||
w = surface->current.width;
|
||||
|
|
Loading…
Reference in a new issue