Skip to content

Commit

Permalink
fix: alwaysOnTop browser window option for X11 Linux (#34913)
Browse files Browse the repository at this point in the history
fix: alwaysontop browser window option for x11

Co-authored-by: Gellert Hegyi <gellert.hegyi@around.co>
  • Loading branch information
trop[bot] and gerhardberger committed Jul 14, 2022
1 parent 2c0327c commit 8313ea4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shell/browser/native_window_views.cc
Expand Up @@ -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() {
Expand Down

0 comments on commit 8313ea4

Please sign in to comment.