Skip to content

Commit

Permalink
Fenster suddenly broke...
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Jan 3, 2025
1 parent 98b9d91 commit 781b30c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion external/fenster.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <windows.h>
#else
#define _DEFAULT_SOURCE 1
#include <X11/XKBlib.h>
// #include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <time.h>
Expand Down Expand Up @@ -316,6 +316,7 @@ FENSTER_API int fenster_loop(struct fenster *f) {
case MotionNotify:
f->x = ev.xmotion.x, f->y = ev.xmotion.y;
break;
#if 0 // suddenly broken...
case KeyPress:
case KeyRelease: {
int m = ev.xkey.state;
Expand All @@ -329,6 +330,7 @@ FENSTER_API int fenster_loop(struct fenster *f) {
f->mod = (!!(m & ControlMask)) | (!!(m & ShiftMask) << 1) |
(!!(m & Mod1Mask) << 2) | (!!(m & Mod4Mask) << 3);
} break;
#endif
}
}
return 0;
Expand Down

0 comments on commit 781b30c

Please sign in to comment.