attempting windows hang fix

This commit is contained in:
Adam D. Ruppe 2018-11-13 17:43:39 -05:00
parent fbf2d7113e
commit 18cf3f4367
3 changed files with 5 additions and 3 deletions

1
cgi.d
View File

@ -26,6 +26,7 @@
* have data presentation magic
* do the skeleton stuff like 1.0
* auto-cache generated stuff in files (at least if pure?)
* introspect functions in json for consumers
https://linux.die.net/man/3/posix_spawn

View File

@ -533,8 +533,6 @@ class DataView : Widget {
version(win32_widgets) {}
else version(custom_widgets) {
enum windowBackgroundColor = Color(212, 212, 212); // used to be 192
enum darkAccentColor = Color(172, 172, 172);
enum lightAccentColor = Color(223, 223, 223); // used to be 223
enum activeTabColor = lightAccentColor;
enum activeListXorColor = Color(255, 255, 0);
enum hoveringColor = Color(215, 215, 215);
@ -544,6 +542,9 @@ else version(custom_widgets) {
enum activeMenuItemColor = Color.blue;
}
else static assert(false);
// these are used by horizontal rule so not just custom_widgets. for now at least.
enum darkAccentColor = Color(172, 172, 172);
enum lightAccentColor = Color(223, 223, 223); // used to be 223
private const(wchar)* toWstringzInternal(in char[] s) {
wchar[] str;

View File

@ -2957,7 +2957,7 @@ struct EventLoopImpl {
// process handles[waitResult - WAIT_OBJECT_0];
} else if(waitResult == handles.length + WAIT_OBJECT_0) {
// message ready
if(PeekMessage(&message, null, 0, 0, PM_NOREMOVE)) // need to peek since sometimes MsgWaitForMultipleObjectsEx returns even though GetMessage can block. tbh i don't fully understand it.
while(PeekMessage(&message, null, 0, 0, PM_NOREMOVE)) // need to peek since sometimes MsgWaitForMultipleObjectsEx returns even though GetMessage can block. tbh i don't fully understand it but the docs say it is foreground activation
if((ret = GetMessage(&message, null, 0, 0)) != 0) {
if(ret == -1)
throw new Exception("GetMessage failed");