This allows us to make xseturgency internal.
Signed-off-by: Devin J. Pohly <[email protected]>
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
* it
*/
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
* it
*/
-static int bellvolume = 0;
/* default TERM value */
char termname[] = "st-256color";
/* default TERM value */
char termname[] = "st-256color";
/* backwards compatibility to xterm */
strhandle();
} else {
/* backwards compatibility to xterm */
strhandle();
} else {
- if (!(win.state & WIN_FOCUSED))
- xseturgency(1);
- if (bellvolume)
- xbell(bellvolume);
}
break;
case '\033': /* ESC */
}
break;
case '\033': /* ESC */
extern unsigned int xfps;
extern unsigned int actionfps;
extern unsigned int cursorthickness;
extern unsigned int xfps;
extern unsigned int actionfps;
extern unsigned int cursorthickness;
extern unsigned int blinktimeout;
extern char termname[];
extern const char *colorname[];
extern unsigned int blinktimeout;
extern char termname[];
extern const char *colorname[];
void draw(void);
void drawregion(int, int, int, int);
void draw(void);
void drawregion(int, int, int, int);
void xclipcopy(void);
void xclippaste(void);
void xhints(void);
void xclipcopy(void);
void xclippaste(void);
void xhints(void);
int xsetcolorname(int, const char *);
void xsettitle(char *);
void xsetpointermotion(int);
int xsetcolorname(int, const char *);
void xsettitle(char *);
void xsetpointermotion(int);
void xresize(int, int);
void xselpaste(void);
void xsetsel(char *, Time);
void xresize(int, int);
void xselpaste(void);
void xsetsel(char *, Time);
static void xunloadfont(Font *);
static void xunloadfonts(void);
static void xsetenv(void);
static void xunloadfont(Font *);
static void xunloadfonts(void);
static void xsetenv(void);
+static void xseturgency(int);
static void expose(XEvent *);
static void visibility(XEvent *);
static void expose(XEvent *);
static void visibility(XEvent *);
- XkbBell(xw.dpy, xw.win, vol, (Atom)NULL);
+ if (!(win.state & WIN_FOCUSED))
+ xseturgency(1);
+ if (bellvolume)
+ XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL);