Skip to content

Commit

Permalink
fix missing left alignment when reading xresources
Browse files Browse the repository at this point in the history
  • Loading branch information
phillbush committed Oct 29, 2020
1 parent ea151ee commit 48007e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ static struct Config config = {
.shrink = 0,

/* time, in seconds, for a notification to stay alive */
.sec = 10
.sec = 10,

/* mouse button that makes xnotify prints a notification's CMD: */
.actionbutton = Button3
};
2 changes: 2 additions & 0 deletions xnotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ getresources(void)
if (XrmGetResource(xdb, "xnotify.alignment", "*", &type, &xval) == True) {
if (strcasecmp(xval.addr, "center") == 0)
config.alignment = CenterAlignment;
else if (strcasecmp(xval.addr, "left") == 0)
config.alignment = LeftAlignment;
else if (strcasecmp(xval.addr, "right") == 0)
config.alignment = RightAlignment;
}
Expand Down

0 comments on commit 48007e8

Please sign in to comment.