diff options
| author | LM-LCL <hello@exaltedelite.club> | 2025-09-13 19:53:09 +0200 |
|---|---|---|
| committer | LM-LCL <hello@exaltedelite.club> | 2025-09-13 19:53:09 +0200 |
| commit | d2cd006e81b638d52ff984a04cf13af928287274 (patch) | |
| tree | 6c4e25b00ace3e697ac0bd76fb791ec07e2b0887 /dmenu.c | |
| parent | c2204773eb67dd150e39f0fa71f4a2c81ff71987 (diff) | |
Diffstat (limited to 'dmenu.c')
| -rw-r--r-- | dmenu.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -100,7 +100,7 @@ cleanup(void) { size_t i; - XUngrabKey(dpy, AnyKey, AnyModifier, root); + XUngrabKeyboard(dpy, CurrentTime); for (i = 0; i < SchemeLast; i++) free(scheme[i]); for (i = 0; items && items[i].text; ++i) @@ -558,10 +558,10 @@ readstdin(void) size_t i, itemsiz = 0, linesiz = 0; ssize_t len; - if(passwd){ - inputw = lines = 0; - return; - } + if(passwd){ + inputw = lines = 0; + return; + } /* read each line from stdin and add it to the item list */ for (i = 0; (len = getline(&line, &linesiz, stdin)) != -1; i++) { @@ -700,7 +700,6 @@ setup(void) CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); XSetClassHint(dpy, win, &ch); - /* input methods */ if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL) die("XOpenIM failed: could not open input device"); |
