wio

a wayland wm stylised after plan9 rio - forked from git.sr.ht/~srcmpwn/wio
git clone git://src.gearsix.net/wio
Log | Files | Refs | Atom | Submodules | README | LICENSE

commit 30c2643a28f795a0b441dd834ea9580b0002c587
parent 8ecffded9bf606e80ce8b2ad3d2ed929aea4f374
Author: Leon Plickat <leonhenrik.plickat@stud.uni-goettingen.de>
Date:   Sat, 15 Jun 2019 04:32:19 +0200

Enforce minial window size for new_view()

The minimal window size of 100x100 is already enforced for reshaping
views. Also enforcing it for spawning new views makes sense, so users
will not accidentaly spawn views to small to interact with.

Diffstat:
Minput.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/input.c b/input.c @@ -242,6 +242,12 @@ static void new_view(struct wio_server *server) { view->box.y = y1; view->box.width = x2 - x1; view->box.height = y2 - y1; + if (view->box.width < 100){ + view->box.width = 100; + } + if (view->box.height < 100){ + view->box.height = 100; + } int fd[2]; if (pipe(fd) != 0) { wlr_log(WLR_ERROR, "Unable to create pipe for fork");