dwm.c
changeset 1436 2a288c62abe5
parent 1434 b0ac204a2c03
child 1437 bb00510a176a
equal deleted inserted replaced
1435:5af9165892ca 1436:2a288c62abe5
   177 static Bool getrootpointer(int *x, int *y);
   177 static Bool getrootpointer(int *x, int *y);
   178 static long getstate(Window w);
   178 static long getstate(Window w);
   179 static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
   179 static Bool gettextprop(Window w, Atom atom, char *text, unsigned int size);
   180 static void grabbuttons(Client *c, Bool focused);
   180 static void grabbuttons(Client *c, Bool focused);
   181 static void grabkeys(void);
   181 static void grabkeys(void);
   182 static Monitor *idxtomon(unsigned int n);
       
   183 static void initfont(const char *fontstr);
   182 static void initfont(const char *fontstr);
   184 static Bool isprotodel(Client *c);
   183 static Bool isprotodel(Client *c);
   185 static void keypress(XEvent *e);
   184 static void keypress(XEvent *e);
   186 static void killclient(const Arg *arg);
   185 static void killclient(const Arg *arg);
   187 static void manage(Window w, XWindowAttributes *wa);
   186 static void manage(Window w, XWindowAttributes *wa);
   231 static int xerrordummy(Display *dpy, XErrorEvent *ee);
   230 static int xerrordummy(Display *dpy, XErrorEvent *ee);
   232 static int xerrorstart(Display *dpy, XErrorEvent *ee);
   231 static int xerrorstart(Display *dpy, XErrorEvent *ee);
   233 static void zoom(const Arg *arg);
   232 static void zoom(const Arg *arg);
   234 #ifdef XINERAMA
   233 #ifdef XINERAMA
   235 static void focusmon(const Arg *arg);
   234 static void focusmon(const Arg *arg);
       
   235 static Monitor *idxtomon(unsigned int n);
   236 static void tagmon(const Arg *arg);
   236 static void tagmon(const Arg *arg);
   237 #endif /* XINERAMA */
   237 #endif /* XINERAMA */
   238 
   238 
   239 /* variables */
   239 /* variables */
   240 static char stext[256];
   240 static char stext[256];
   941 						 True, GrabModeAsync, GrabModeAsync);
   941 						 True, GrabModeAsync, GrabModeAsync);
   942 		}
   942 		}
   943 	}
   943 	}
   944 }
   944 }
   945 
   945 
       
   946 #ifdef XINERAMA
   946 Monitor *
   947 Monitor *
   947 idxtomon(unsigned int n) {
   948 idxtomon(unsigned int n) {
   948 	unsigned int i;
   949 	unsigned int i;
   949 	Monitor *m;
   950 	Monitor *m;
   950 
   951 
   951 	for(m = mons, i = 0; m && i != n; m = m->next, i++);
   952 	for(m = mons, i = 0; m && i != n; m = m->next, i++);
   952 	return m;
   953 	return m;
   953 }
   954 }
       
   955 #endif /* XINERAMA */
   954 
   956 
   955 void
   957 void
   956 initfont(const char *fontstr) {
   958 initfont(const char *fontstr) {
   957 	char *def, **missing;
   959 	char *def, **missing;
   958 	int i, n;
   960 	int i, n;