mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
sowm: skip setting unneeded variables.
This commit is contained in:
parent
c4d0b2ee8c
commit
7a995a4970
2
sowm.c
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user