fix crashing

This commit is contained in:
speedie 2022-12-08 20:34:30 +01:00
parent d9bb4c3a64
commit 063ace77ca
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,4 @@
# speedwm
![image](/docs/preview.png)
## What is speedwm?

View file

@ -6651,6 +6651,11 @@ previewtag(const Arg *arg)
void
centerwindow(const Arg *arg)
{
Client *c;
if (!selmon->sel)
return;
resizeclient(selmon->sel, (selmon->mw - selmon->mw * 0.5) / 2, (selmon->mh - selmon->mh * 0.5) / 2, selmon->mw * 0.5, selmon->mh * 0.5);
}