cleanup some no longer used int and functions

This commit is contained in:
speedie 2022-12-04 22:08:29 +01:00
parent d65c4d6a55
commit 76b987870b
4 changed files with 1 additions and 21 deletions

View file

@ -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: 0 ! Hide the bar by default (0/1)
speedwm.bar.hide.tags: 0 ! Hide the tags (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.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.floating: 0 ! Hide the floating window indicator (0/1)
speedwm.bar.hide.layout: 0 ! Hide the layout 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) 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 !! Powerline options
speedwm.bar.powerline.tag.shape: 0 ! Shape of the tag powerlines (0: >, 1: /) 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 !! Cursor options

View file

@ -231,7 +231,6 @@ static int colorlayout = 0; /* Color the layout indicator
/* Powerline options */ /* Powerline options */
static int tagplshape = 0; /* Shape of the tag powerlines (0: >, 1: /) */ static int tagplshape = 0; /* Shape of the tag powerlines (0: >, 1: /) */
static int titleplshape = 1; /* Shape of the title powerlines (0: >, 1: /) */
/* Text options /* Text options
* *

View file

@ -322,12 +322,8 @@ struct Monitor {
int hidefloating; int hidefloating;
int hidesticky; int hidesticky;
/* powerline stuff */
int hidetagpowerline;
/* powerline shape */ /* powerline shape */
int tagplshape; int tagplshape;
int titleplshape;
/* position */ /* position */
int layoutposition; int layoutposition;
@ -1733,12 +1729,8 @@ createmon(void)
m->hidefloating = hidefloating; m->hidefloating = hidefloating;
m->hidesticky = hidesticky; m->hidesticky = hidesticky;
/* powerline stuff */
m->hidetagpowerline = hidetagpowerline;
/* shape of powerlines */ /* shape of powerlines */
m->tagplshape = tagplshape; m->tagplshape = tagplshape;
m->titleplshape = titleplshape;
/* monitor index */ /* monitor index */
for (mi = 0, mon = mons; mon; mon = mon->next, mi++); for (mi = 0, mon = mons; mon; mon = mon->next, mi++);
@ -3491,13 +3483,8 @@ motionnotify(XEvent *e)
XMotionEvent *ev = &e->xmotion; XMotionEvent *ev = &e->xmotion;
Client *c; Client *c;
unsigned int i, x, occ = 0, lts = 0; unsigned int i, x, occ = 0;
int plt = 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) if (ev->window != root)
return; return;
if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) {

View file

@ -87,14 +87,11 @@ ResourcePref resources[] = {
{ "bar.hide.icon", INTEGER, &hideicon }, { "bar.hide.icon", INTEGER, &hideicon },
{ "bar.hide.tags", INTEGER, &hidetags }, { "bar.hide.tags", INTEGER, &hidetags },
{ "bar.hide.emptytags", INTEGER, &hideemptytags }, { "bar.hide.emptytags", INTEGER, &hideemptytags },
{ "bar.hide.powerlinetitle", INTEGER, &hidetitlepowerline },
{ "bar.hide.powerlinetags", INTEGER, &hidetagpowerline },
{ "bar.hide.status", INTEGER, &hidestatus }, { "bar.hide.status", INTEGER, &hidestatus },
{ "bar.hide.systray", INTEGER, &hidesystray }, { "bar.hide.systray", INTEGER, &hidesystray },
{ "bar.hide.sticky", INTEGER, &hidesticky }, { "bar.hide.sticky", INTEGER, &hidesticky },
{ "bar.hide.floating", INTEGER, &hidefloating }, { "bar.hide.floating", INTEGER, &hidefloating },
{ "bar.powerline.tag.shape", INTEGER, &tagplshape }, { "bar.powerline.tag.shape", INTEGER, &tagplshape },
{ "bar.powerline.title.shape", INTEGER, &titleplshape },
{ "client.hide.border", INTEGER, &hideborder }, { "client.hide.border", INTEGER, &hideborder },
{ "client.hide.singleborder", INTEGER, &hidesingleborder }, { "client.hide.singleborder", INTEGER, &hidesingleborder },
{ "client.allowurgent", INTEGER, &allowurgent }, { "client.allowurgent", INTEGER, &allowurgent },