summaryrefslogtreecommitdiff
path: root/src/linux/platform.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
commita7f382b431e6eed3f180c71d4175970da096eab9 (patch)
tree0099dba56efe2eb24d82481ed6ea5294e7b4bfb9 /src/linux/platform.c
parentd4dbb9333666a2a0c752ecee49b4f70b8e4c1371 (diff)
work
Diffstat (limited to 'src/linux/platform.c')
-rw-r--r--src/linux/platform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/linux/platform.c b/src/linux/platform.c
index 6083670..f87b4ac 100644
--- a/src/linux/platform.c
+++ b/src/linux/platform.c
@@ -39,6 +39,7 @@ struct t_platform_window
XEvent event;
char *clipboard_str;
s32 clipboard_strlen;
+ bool do_draw;
Atom xdnd_req;
Atom xdnd_source;
@@ -682,6 +683,7 @@ platform_window platform_open_window_ex(char *name, u16 width, u16 height, u16 m
window.next_cursor_type = CURSOR_DEFAULT;
window.clipboard_str = 0;
window.clipboard_strlen = 0;
+ window.do_draw = true;
static int att[] =
{
@@ -979,6 +981,7 @@ void platform_handle_events(platform_window *window, mouse_input *mouse, keyboar
mouse->move_y = 0;
mouse->scroll_state = 0;
keyboard->text_changed = false;
+ window->do_draw = true;
XClientMessageEvent m;