diff options
author | epoch <epoch@hacking.allowed.org> | 2020-04-02 04:59:36 -0500 |
---|---|---|
committer | epoch <epoch@hacking.allowed.org> | 2020-04-02 04:59:36 -0500 |
commit | 3ad65451ff1326f2fc44057ffa76f44e01c7c6bb (patch) | |
tree | 2f3721130bb362d4d2896ce04d0c19dfef0ef651 /src/graphics_x11.h | |
parent | 192c4437672ce7743f1e567b3fbf2ef7c9c4bbca (diff) | |
download | hackvr-3ad65451ff1326f2fc44057ffa76f44e01c7c6bb.tar.gz hackvr-3ad65451ff1326f2fc44057ffa76f44e01c7c6bb.zip |
added a handler for graphics events and not only assuming we only need to redraw when there's an input event, so draw_screen() got moved and now redraw() will actually call it.
Diffstat (limited to 'src/graphics_x11.h')
-rw-r--r-- | src/graphics_x11.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics_x11.h b/src/graphics_x11.h index b5c3119..41c0bbe 100644 --- a/src/graphics_x11.h +++ b/src/graphics_x11.h @@ -3,7 +3,7 @@ #include <X11/Xlib.h> -#define HV_GRAPHICS_X11_EVENT_MASK StructureNotifyMask|ExposureMask +#define HV_GRAPHICS_X11_EVENT_MASK StructureNotifyMask|ExposureMask|VisibilityChangeMask|FocusChangeMask struct x11_global {//stores global variables for the x11 *specific* shit. XColor colors[256]; |