CEFSharp devtool blinking

Viewed 401

I'm currently working on an app using CEFSharp.WinForms (v92.0.260) and i'm facing an issue with the devtools. When i use the ShowDevTools method, the dev tool window appears as intended but the application start to 'blink' between the browser window and the dev tool window (like if i pressed alt tab 3 time each second). This behaviour is independant of the page loaded.

This strange blinking stops sometimes when i move/maximize/resize one of the two window (couldn't figure a pattern to fix it each time).

I tried a lot of window configuration but nothing changed (window topmost, resizable, maximized etc..) and this strange behaviour occures only when the devtool is displayed.

1 Answers

After some more tests.. it seems that the issues comes from the chaining of the browser.Focus method and browser.ShowDevTools methods. If i put a small delay (1sec) betweek the call of the two methods, the blinking between the two window does not occures in both the minimal example and my solution.

Related