changeset: 1454:b55c7bd92fda
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Thu Jul 09 11:29:01 2009 +0100
files: config.def.h dwm.c
description:
removed monsyms, useless
diff -r 0082921983cb -r b55c7bd92fda config.def.h
--- a/config.def.h Thu Jul 09 11:21:06 2009 +0100
+++ b/config.def.h Thu Jul 09 11:29:01 2009 +0100
@@ -12,9 +12,6 @@
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
-
-/* monitor(s) symbols */
-static const char *monsyms[] = { "<1>", "<2>", "<3>", "<4>" };
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
diff -r 0082921983cb -r b55c7bd92fda dwm.c
--- a/dwm.c Thu Jul 09 11:21:06 2009 +0100
+++ b/dwm.c Thu Jul 09 11:29:01 2009 +0100
@@ -123,7 +123,7 @@
struct Monitor {
int screen_number;
float mfact;
- int by, btx; /* bar geometry */
+ int by; /* bar geometry */
int mx, my, mw, mh; /* screen size */
int wx, wy, ww, wh; /* window area */
unsigned int seltags;
@@ -409,9 +409,8 @@
selmon = m;
focus(NULL);
}
- if(ev->window == selmon->barwin && ev->x >= selmon->btx) {
- i = 0;
- x = selmon->btx;
+ if(ev->window == selmon->barwin) {
+ i = x = 0;
do
x += TEXTW(tags[i]);
while(ev->x >= x && ++i < LENGTH(tags));
@@ -652,12 +651,6 @@
urg |= c->tags;
}
dc.x = 0;
- if(mons->next) { /* more than a single monitor */
- dc.w = TEXTW(monsyms[m->screen_number]);
- drawtext(monsyms[m->screen_number], selmon == m ? dc.sel : dc.norm, False);
- dc.x += dc.w;
- }
- m->btx = dc.x;
for(i = 0; i < LENGTH(tags); i++) {
dc.w = TEXTW(tags[i]);
col = m->tagset[m->seltags] & 1 << i ? dc.sel : dc.norm;
@@ -1690,8 +1683,6 @@
if(XineramaIsActive(dpy))
info = XineramaQueryScreens(dpy, &n);
#endif /* XINERAMA */
- if(n > LENGTH(monsyms))
- n = LENGTH(monsyms);
/* allocate monitor(s) for the new geometry setup */
for(i = 0; i < n; i++) {
if(!(m = (Monitor *)malloc(sizeof(Monitor))))
Received on Thu Jul 09 2009 - 10:29:05 UTC
This archive was generated by hypermail 2.2.0 : Thu Jul 09 2009 - 10:36:05 UTC