keyboard_indicators: Clean up opening display
This commit is contained in:
		@@ -7,10 +7,10 @@
 | 
				
			|||||||
const char *
 | 
					const char *
 | 
				
			||||||
keyboard_indicators(void)
 | 
					keyboard_indicators(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	Display *dpy = XOpenDisplay(NULL);
 | 
						Display *dpy;
 | 
				
			||||||
	XKeyboardState state;
 | 
						XKeyboardState state;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (dpy == NULL) {
 | 
						if (!(dpy = XOpenDisplay(NULL))) {
 | 
				
			||||||
		fprintf(stderr, "Cannot open display\n");
 | 
							fprintf(stderr, "Cannot open display\n");
 | 
				
			||||||
		return NULL;
 | 
							return NULL;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user