Skip to content

Commit 48007e8

Browse files
committed
fix missing left alignment when reading xresources
1 parent ea151ee commit 48007e8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

config.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@ static struct Config config = {
2626
.shrink = 0,
2727

2828
/* time, in seconds, for a notification to stay alive */
29-
.sec = 10
29+
.sec = 10,
30+
31+
/* mouse button that makes xnotify prints a notification's CMD: */
32+
.actionbutton = Button3
3033
};

xnotify.c

+2
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ getresources(void)
9999
if (XrmGetResource(xdb, "xnotify.alignment", "*", &type, &xval) == True) {
100100
if (strcasecmp(xval.addr, "center") == 0)
101101
config.alignment = CenterAlignment;
102+
else if (strcasecmp(xval.addr, "left") == 0)
103+
config.alignment = LeftAlignment;
102104
else if (strcasecmp(xval.addr, "right") == 0)
103105
config.alignment = RightAlignment;
104106
}

0 commit comments

Comments
 (0)