mirror of https://github.com/adamdruppe/arsd.git
attempting windows hang fix
This commit is contained in:
parent
fbf2d7113e
commit
18cf3f4367
1
cgi.d
1
cgi.d
|
@ -26,6 +26,7 @@
|
||||||
* have data presentation magic
|
* have data presentation magic
|
||||||
* do the skeleton stuff like 1.0
|
* do the skeleton stuff like 1.0
|
||||||
* auto-cache generated stuff in files (at least if pure?)
|
* auto-cache generated stuff in files (at least if pure?)
|
||||||
|
* introspect functions in json for consumers
|
||||||
|
|
||||||
|
|
||||||
https://linux.die.net/man/3/posix_spawn
|
https://linux.die.net/man/3/posix_spawn
|
||||||
|
|
|
@ -533,8 +533,6 @@ class DataView : Widget {
|
||||||
version(win32_widgets) {}
|
version(win32_widgets) {}
|
||||||
else version(custom_widgets) {
|
else version(custom_widgets) {
|
||||||
enum windowBackgroundColor = Color(212, 212, 212); // used to be 192
|
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 activeTabColor = lightAccentColor;
|
||||||
enum activeListXorColor = Color(255, 255, 0);
|
enum activeListXorColor = Color(255, 255, 0);
|
||||||
enum hoveringColor = Color(215, 215, 215);
|
enum hoveringColor = Color(215, 215, 215);
|
||||||
|
@ -544,6 +542,9 @@ else version(custom_widgets) {
|
||||||
enum activeMenuItemColor = Color.blue;
|
enum activeMenuItemColor = Color.blue;
|
||||||
}
|
}
|
||||||
else static assert(false);
|
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) {
|
private const(wchar)* toWstringzInternal(in char[] s) {
|
||||||
wchar[] str;
|
wchar[] str;
|
||||||
|
|
|
@ -2957,7 +2957,7 @@ struct EventLoopImpl {
|
||||||
// process handles[waitResult - WAIT_OBJECT_0];
|
// process handles[waitResult - WAIT_OBJECT_0];
|
||||||
} else if(waitResult == handles.length + WAIT_OBJECT_0) {
|
} else if(waitResult == handles.length + WAIT_OBJECT_0) {
|
||||||
// message ready
|
// 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 = GetMessage(&message, null, 0, 0)) != 0) {
|
||||||
if(ret == -1)
|
if(ret == -1)
|
||||||
throw new Exception("GetMessage failed");
|
throw new Exception("GetMessage failed");
|
||||||
|
|
Loading…
Reference in New Issue