diff options
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -94,6 +94,7 @@ static void xloadfonts(char *, double); | |||
94 | static void xunloadfont(Font *); | 94 | static void xunloadfont(Font *); |
95 | static void xunloadfonts(void); | 95 | static void xunloadfonts(void); |
96 | static void xsetenv(void); | 96 | static void xsetenv(void); |
97 | static void xseturgency(int); | ||
97 | 98 | ||
98 | static void expose(XEvent *); | 99 | static void expose(XEvent *); |
99 | static void visibility(XEvent *); | 100 | static void visibility(XEvent *); |
@@ -1521,9 +1522,12 @@ xseturgency(int add) | |||
1521 | } | 1522 | } |
1522 | 1523 | ||
1523 | void | 1524 | void |
1524 | xbell(int vol) | 1525 | xbell(void) |
1525 | { | 1526 | { |
1526 | XkbBell(xw.dpy, xw.win, vol, (Atom)NULL); | 1527 | if (!(win.state & WIN_FOCUSED)) |
1528 | xseturgency(1); | ||
1529 | if (bellvolume) | ||
1530 | XkbBell(xw.dpy, xw.win, bellvolume, (Atom)NULL); | ||
1527 | } | 1531 | } |
1528 | 1532 | ||
1529 | void | 1533 | void |