From 7a995a497059b6b5eb58eda50f2893e2519ed408 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 17 Oct 2019 14:28:17 +0300 Subject: [PATCH] sowm: skip setting unneeded variables. --- sowm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sowm.c b/sowm.c index dd8a87e..fe835f3 100644 --- a/sowm.c +++ b/sowm.c @@ -333,7 +333,7 @@ void win_kill() { void win_center(const Arg arg) { Window w = arg.w ? arg.w : win_current(); - win_size(w, &wx, &wy, &ww, &wh); + win_size(w, &(int){0}, &(int){0}, &ww, &wh); XMoveWindow(d, w, sw / 2 - ww / 2, sh / 2 - wh / 2);