mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: alwaysOnTop browser window option for X11 Linux (#34911)
fix: alwaysontop browser window option for x11 Co-authored-by: Gellert Hegyi <gellert.hegyi@around.co>
This commit is contained in:
@@ -497,6 +497,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() {
|
||||
|
||||
Reference in New Issue
Block a user