diff options
| author | Fuwn <[email protected]> | 2024-05-23 17:07:28 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-23 17:07:59 -0700 |
| commit | 1a06b077ca37515faf5994c8b654e70cf94fb5e1 (patch) | |
| tree | cd5a409375088cbfbb2691f83bdaf5817ae615f5 | |
| parent | feat(dwm.c): followclient follows on tagmon (diff) | |
| download | seiwm-1a06b077ca37515faf5994c8b654e70cf94fb5e1.tar.xz seiwm-1a06b077ca37515faf5994c8b654e70cf94fb5e1.zip | |
refactor(dwm.c): remove unused variables
| -rw-r--r-- | dwm.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1950,9 +1950,9 @@ resize(Client *c, int x, int y, int w, int h, int interact) void resizebarwin(Monitor *m) { - unsigned int w = m->ww; - if (showsystray && m == systraytomon(m) && !systrayonleft) - w -= getsystraywidth(); + // unsigned int w = m->ww; + // if (showsystray && m == systraytomon(m) && !systrayonleft) + // w -= getsystraywidth(); XMoveResizeWindow(dpy, m->barwin, m->wx + sp, m->by + vp, m->ww - 2 * sp, bh); } @@ -2727,7 +2727,7 @@ unmapnotify(XEvent *e) void updatebars(void) { - unsigned int w; + /* unsigned int w; */ Monitor *m; XSetWindowAttributes wa = { .override_redirect = True, @@ -2738,9 +2738,9 @@ updatebars(void) for (m = mons; m; m = m->next) { if (m->barwin) continue; - w = m->ww; + /* w = m->ww; if (showsystray && m == systraytomon(m)) - w -= getsystraywidth(); + w -= getsystraywidth(); */ m->barwin = XCreateWindow(dpy, root, m->wx + sp, m->by + vp, m->ww - 2 * sp, bh, 0, DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); |