commit - be5b89f6c0f5039e80363593120905ed3caf3eb5
commit + 686e9237730a6dc26b4af83a60cb24dd0f9a60f8
blob - b3002136dd63e2b1c1ed2ac1c825fff706d00c0c (mode 644)
blob + /dev/null
--- .clang_complete
+++ /dev/null
--std=c11
--I/usr/X11R6/include
\ No newline at end of file
blob - 2755bf9d4f5b996cf0b62b14bd9d101983a696b2 (mode 644)
blob + /dev/null
--- .dir-locals.el
+++ /dev/null
-((nil . ((eval . (setq flycheck-clang-include-path
- (list (expand-file-name "/usr/X11R6/include/")))))))
blob - 91271c06cf5358b7cb5d7a45bb9d3a890c598f78
blob + 964d48166e66681dfdbce3e4fc52255cfcbd9570
--- mymenu.c
+++ mymenu.c
// to actually grab that goddam keyboard. Only one call to
// XGrabKeyboard does not always end up with the keyboard grabbed!
int take_keyboard(Display *d, Window w) {
- int i;
- for (i = 0; i < 1000; i++) {
- if (XGrabKeyboard(d, w, True, GrabModeAsync, GrabModeAsync, CurrentTime) == GrabSuccess)
- return 1;
- usleep(1000);
- }
- return 0;
+ int i;
+ for (i = 0; i < 100; i++) {
+ if (XGrabKeyboard(d, w, True, GrabModeAsync, GrabModeAsync, CurrentTime) == GrabSuccess)
+ return 1;
+ usleep(1000);
+ }
+ return 0;
}
void release_keyboard(Display *d) {
- XUngrabKeyboard(d, CurrentTime);
+ XUngrabKeyboard(d, CurrentTime);
}
int parse_integer(const char *str, int default_value, int max) {