Skip to content

Commit

Permalink
Quit the window manager when no keys file found.
Browse files Browse the repository at this point in the history
  • Loading branch information
moetunes committed Jun 30, 2016
1 parent 04febf2 commit 7d3e5d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
1/7/16
Quit the window manager if no key file found.

17/5/16
Fix for popped window size on desktop change

Expand Down
2 changes: 1 addition & 1 deletion bar.c
@@ -1,4 +1,4 @@
// bar.c [ 0.8.9 ]
// bar.c [ 0.9.0 ]

static void draw_numopen(unsigned int cd, unsigned int gc);
static Drawable area_sb;
Expand Down
2 changes: 1 addition & 1 deletion events.c
@@ -1,4 +1,4 @@
// events.c [ 0.8.9 ]
// events.c [ 0.9.0 ]

void configurerequest(XEvent *e) {
XConfigureRequestEvent *ev = &e->xconfigurerequest;
Expand Down
4 changes: 2 additions & 2 deletions readkeysapps.c
@@ -1,4 +1,4 @@
/* readkeysapps.c [ 0.8.9 ] */
/* readkeysapps.c [ 0.9.0 ] */

void read_keys_file() {
FILE *keyfile ;
Expand All @@ -8,7 +8,7 @@ void read_keys_file() {
keyfile = fopen( KEY_FILE, "r" ) ;
if ( keyfile == NULL ) {
fprintf(stderr, "\033[0;34m snapwm : \033[0;31m Couldn't find %s\033[0m \n" ,KEY_FILE);
return;
quit();
} else {
while(fgets(buffer,sizeof buffer,keyfile) != NULL) {
/* Check for comments */
Expand Down
2 changes: 1 addition & 1 deletion readrc.c
@@ -1,4 +1,4 @@
// readrc.c [ 0.8.9 ]
// readrc.c [ 0.9.0 ]

unsigned int i, k=0, c=0;
int j=-1;
Expand Down

0 comments on commit 7d3e5d2

Please sign in to comment.