diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-01 16:48:27 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-06-01 16:48:27 +0200 |
| commit | 482da12f717040e4c07a0ffb03cc2d3fd6a4d012 (patch) | |
| tree | b8b74c27998db7aad719c3d92e52bad7f2667e8f | |
| parent | be5c82b5e5e3349ed97d2eb553c425a311d6cad7 (diff) | |
Fix: Zero-sized borderless window causes high cpu usage on windows (#985)
| -rw-r--r-- | src/Fl_win32.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index ce5cf0c72..45474fd0f 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2211,7 +2211,7 @@ void Fl_WinAPI_Window_Driver::makeWindow() { if (!fl_clipboard_notify_empty() && clipboard_wnd == NULL) fl_clipboard_notify_target((HWND)x->xid); - wait_for_expose_value = 1; + wait_for_expose_value = ((wp == 0 || hp == 0) && !w->border() && !w->parent() ? 0 : 1); // issue #985 if (show_iconic()) { showit = 0; show_iconic(0); |
