-
Notifications
You must be signed in to change notification settings - Fork 614
Fix for #10686: White line along right edge of UI on high-DPI Windows #507
base: master
Are you sure you want to change the base?
Conversation
CC @JeffryBooher @redmunds @peterflynn Please review this change. |
@@ -816,7 +816,7 @@ LRESULT cef_dark_aero_window::WindowProc(UINT message, WPARAM wParam, LPARAM lPa | |||
if (mReady) { | |||
UpdateNonClientArea(); | |||
} | |||
break; | |||
return 0L; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work ok but the app frame is no longer drawing in the active color when activated.
My guess is that Windows isn't sending WM_ACTIVATEAPP
because you're preventing the WM_ACTIVATE
message from reaching the default Window Proc but I haven't debugged this to determine if that is indeed the case.
case WM_ACTIVATEAPP:
mIsActive = (BOOL)wParam;
UpdateNonClientArea();
break;
}
return lr;
I guess technically you could just keep track of the active state from here but I wonder if there are other things that are broken.
@JeffryBooher Thanks for pointing out this and proving more info! I will look into this. |
@nethip to be able to get the menu bar to render in the active color we can add But as @JeffryBooher pointed out what else might be broken? I could not replicate this problem when switching between other processes though. I tried several variations and could not really find anything that was broken when using this fix. There are probably more variations I could try but its over midnight now.. soo nighty night! 😄 |
We should try playing around with the Window Class and make the background brush black. It's white by default. That might minimize the White Line flicker. |
This is a fix contributed by @fxb. This fix address the thin white line problem that appears just below the menu bar randomly.