From 76b987870b3a602f0b7532464dd7a1b2a90f0f6b Mon Sep 17 00:00:00 2001 From: speedie Date: Sun, 4 Dec 2022 22:08:29 +0100 Subject: [PATCH] cleanup some no longer used int and functions --- docs/example.Xresources | 3 --- options.h | 1 - speedwm.c | 15 +-------------- xresources.h | 3 --- 4 files changed, 1 insertion(+), 21 deletions(-) diff --git a/docs/example.Xresources b/docs/example.Xresources index 5991807..e888197 100644 --- a/docs/example.Xresources +++ b/docs/example.Xresources @@ -12,8 +12,6 @@ speedwm.bar.paddingv: 10 ! Vertical padding (extra space) around speedwm.bar.hide: 0 ! Hide the bar by default (0/1) speedwm.bar.hide.tags: 0 ! Hide the tags (0/1) speedwm.bar.hide.emptytags: 1 ! Hide the tags that have no windows open (0/1) -speedwm.bar.hide.powerlinetags: 0 ! Hide the powerline drawn over the tags (0/1) -speedwm.bar.hide.powerlinetitle: 0 ! Hide the powerline drawn around the title (0/1) speedwm.bar.hide.floating: 0 ! Hide the floating window indicator (0/1) speedwm.bar.hide.layout: 0 ! Hide the layout indicator (0/1) speedwm.bar.hide.sticky: 0 ! Hide the sticky indicator (0/1) @@ -117,7 +115,6 @@ speedwm.color.selectedtitle: 1 ! Color the selected title (0/1) !! Powerline options speedwm.bar.powerline.tag.shape: 0 ! Shape of the tag powerlines (0: >, 1: /) -speedwm.bar.powerline.title.shape: 1 ! Shape of the title powerlines (0: >, 1: /) !! Cursor options diff --git a/options.h b/options.h index 2ace474..7b76fcc 100644 --- a/options.h +++ b/options.h @@ -231,7 +231,6 @@ static int colorlayout = 0; /* Color the layout indicator /* Powerline options */ static int tagplshape = 0; /* Shape of the tag powerlines (0: >, 1: /) */ -static int titleplshape = 1; /* Shape of the title powerlines (0: >, 1: /) */ /* Text options * diff --git a/speedwm.c b/speedwm.c index 58e8c58..e491112 100644 --- a/speedwm.c +++ b/speedwm.c @@ -322,12 +322,8 @@ struct Monitor { int hidefloating; int hidesticky; - /* powerline stuff */ - int hidetagpowerline; - /* powerline shape */ int tagplshape; - int titleplshape; /* position */ int layoutposition; @@ -1733,12 +1729,8 @@ createmon(void) m->hidefloating = hidefloating; m->hidesticky = hidesticky; - /* powerline stuff */ - m->hidetagpowerline = hidetagpowerline; - /* shape of powerlines */ m->tagplshape = tagplshape; - m->titleplshape = titleplshape; /* monitor index */ for (mi = 0, mon = mons; mon; mon = mon->next, mi++); @@ -3491,13 +3483,8 @@ motionnotify(XEvent *e) XMotionEvent *ev = &e->xmotion; Client *c; - unsigned int i, x, occ = 0, lts = 0; - int plt = 0; + unsigned int i, x, occ = 0; - if (!selmon->hidetagpowerline) - plt = plw; - - /* NOTE: This is disabled because it is very, very buggy and destroys productivity. I do not recommend using it. */ if (ev->window != root) return; if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { diff --git a/xresources.h b/xresources.h index fc7cb53..f273efd 100644 --- a/xresources.h +++ b/xresources.h @@ -87,14 +87,11 @@ ResourcePref resources[] = { { "bar.hide.icon", INTEGER, &hideicon }, { "bar.hide.tags", INTEGER, &hidetags }, { "bar.hide.emptytags", INTEGER, &hideemptytags }, - { "bar.hide.powerlinetitle", INTEGER, &hidetitlepowerline }, - { "bar.hide.powerlinetags", INTEGER, &hidetagpowerline }, { "bar.hide.status", INTEGER, &hidestatus }, { "bar.hide.systray", INTEGER, &hidesystray }, { "bar.hide.sticky", INTEGER, &hidesticky }, { "bar.hide.floating", INTEGER, &hidefloating }, { "bar.powerline.tag.shape", INTEGER, &tagplshape }, - { "bar.powerline.title.shape", INTEGER, &titleplshape }, { "client.hide.border", INTEGER, &hideborder }, { "client.hide.singleborder", INTEGER, &hidesingleborder }, { "client.allowurgent", INTEGER, &allowurgent },