GPU Process WindowServer blocking prevents CGL Currently block is done with setApplicationIsDaemon I managed to use the Web Process method of blocking WindowServer on iMac Pro I failed to use the method on MacBook with Intel/AMD
<rdar://problem/71893390>
Created attachment 415299 [details] Patch
Comment on attachment 415299 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=415299&action=review > Source/WebKit/GPUProcess/mac/GPUProcessMac.mm:48 > + auto retval = CGSSetDenyWindowServerConnections(true); Not really WebKit style to use the name "retval" and I would prefer "result", "returnValue", or "errorCode", or even "error".
Created attachment 415406 [details] Patch
Thanks for the review. Per Arne found a proper fix. The GPU Process property list was missing allowing the automatic graphics switching. It's unknown if this is intended limitation or accidental error in CGL.
Created attachment 415407 [details] Patch
Comment on attachment 415407 [details] Patch R=me. I think the build failures are unrelated.
Committed r270430: <https://trac.webkit.org/changeset/270430> All reviewed patches have been landed. Closing bug and clearing flags on attachment 415407 [details].