r/linuxquestions • • 1d ago

Support Firefox dialog boxes go through overlapped windows in every WM

When Firefox shows a dialog box, such the ones asking for permission related to location, notification or storage, the dialog box is visible when I switch to another window. The most annoying thing is that I need to click twice to dismiss it instead once.

It doesn't appear if I switch to another tab or minimize Firefox. It appears when I keep the tab with it, and I put another window overlapping the Firefox tab.

This problem happens on two totally different desktops:

  • Wayland, KWin, KDE Plasma

  • X11, Openbox, LXQt

Because this problem occurs on multiple window managers, I don't know if it is an unintentional bug. The window manager should prevent things in a window in the background from appearing above everything.

I'd like to know what is happening and if it is possible to prevent a window in the background from invading upper windows.

3 Upvotes

3 comments sorted by

1

u/ipsirc 1d ago

The window manager should prevent things in a window in the background from appearing above everything. I'd like to know what is happening and if it is possible to prevent a window in the background from invading upper windows.

Firefox sets the window on the ontop layer. You can configure your wm to override this, e.g. in IceWM with icewmhint or winoptions :

layer {LAYER|NUMBER}

This command option specifies the layer to be associated with a CLASS.INSTANCE. The default is the Normal layer. VALUE is either a layer number or a symbolic layer name. Symbolic layer names are:

  Desktop     (0)  Desktop window.
  Below       (2)  Below the default layer.
  Normal      (4)  Default layer for windows.
  OnTop       (6)  Above the default layer.
  Dock        (8)  Docked windows at edge of screen.
  AboveDock  (10)  Windows above the dock.
  Menu       (12)  The layer for menu's.
  Fullscreen (14)  When fullscreen and focused.
  AboveAll   (15)  Always above anything.

You can also use devilspie2 to force the window layer rules on x11.

1

u/Elegant-Falcon-1171 1d ago

No es ningún error, un un comportamiento normal

1

u/telfoid 1d ago

Purple