1
0
mirror of https://github.com/dylanaraps/sowm.git synced 2025-07-27 10:11:57 -07:00

sowm: skip setting unneeded variables.

This commit is contained in:
Dylan Araps
2019-10-17 14:28:17 +03:00
parent c4d0b2ee8c
commit 7a995a4970

2
sowm.c

@@ -333,7 +333,7 @@ void win_kill() {
void win_center(const Arg arg) { void win_center(const Arg arg) {
Window w = arg.w ? arg.w : win_current(); 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, XMoveWindow(d, w, sw / 2 - ww / 2,
sh / 2 - wh / 2); sh / 2 - wh / 2);