fix: alwaysOnTop browser window option for X11 Linux (#34766)

fix: alwaysontop browser window option for x11
This commit is contained in:
Gellert Hegyi 2022-07-13 20:59:57 +02:00 committed by GitHub
parent 46e5c537c8
commit 440c575aa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -498,6 +498,13 @@ void NativeWindowViews::Show() {
if (global_menu_bar_)
global_menu_bar_->OnWindowMapped();
#endif
#if defined(USE_OZONE_PLATFORM_X11)
// On X11, setting Z order before showing the window doesn't take effect,
// so we have to call it again.
if (IsX11())
widget()->SetZOrderLevel(widget()->GetZOrderLevel());
#endif
}
void NativeWindowViews::ShowInactive() {