Avoid using timing related hacks to detect the end of a live resize on macOS

Since cocoa provides start/end notifications for live resizing, rely on
those instead.
This commit is contained in:
Kovid Goyal
2019-02-28 15:15:31 +05:30
parent bbeb08ba08
commit 3bd1ca0ac3
9 changed files with 63 additions and 4 deletions

View File

@@ -126,6 +126,7 @@ typedef struct {
bool is_key_pressed[MAX_KEY_COUNT];
bool viewport_size_dirty;
double last_resize_event_at;
bool has_live_resize_information, live_resize_in_progress;
bool has_pending_resizes, is_semi_transparent, shown_once, is_damaged;
uint32_t offscreen_texture_id;
unsigned int clear_count;