Readme: achieve fullscreen + allow borderpx = 0

main
Stivvo 2020-10-24 16:51:22 +02:00
parent c98686cf16
commit fcc869ed84
2 changed files with 2 additions and 3 deletions

View File

@ -71,7 +71,6 @@ dwl is a work in progress, and it has not yet reached its feature goals in a num
- Statusbar support (built-in or external) - Statusbar support (built-in or external)
- layer-shell - layer-shell
- Damage tracking - Damage tracking
- Fullscreen/fixed windows (or whatever the Wayland analogues are)
## Acknowledgements ## Acknowledgements

4
dwl.c
View File

@ -700,6 +700,7 @@ setfullscreen(Client *c, int fullscreen)
#endif #endif
wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen); wlr_xdg_toplevel_set_fullscreen(c->surface.xdg, fullscreen);
// restore previous size instead of arrange to work with floating windows
if (fullscreen) { if (fullscreen) {
c->prevx = c->geom.x; c->prevx = c->geom.x;
c->prevy = c->geom.y; c->prevy = c->geom.y;
@ -1240,8 +1241,7 @@ renderclients(Monitor *m, struct timespec *now)
ox = c->geom.x, oy = c->geom.y; ox = c->geom.x, oy = c->geom.y;
wlr_output_layout_output_coords(output_layout, m->wlr_output, wlr_output_layout_output_coords(output_layout, m->wlr_output,
&ox, &oy); &ox, &oy);
if (c->bw == 0)
if (c->isfullscreen)
goto render; goto render;
w = surface->current.width; w = surface->current.width;