linuxmint / mint21-beta

BETA Bug Squash Rush
16 stars 3 forks source link

Firefox opened with keyboard shortcut does not get focus #160

Open photong opened 2 years ago

photong commented 2 years ago

When Firefox is launched with a keyboard shortcut, the focus remains on the window that had focus before Firefox was launched.

Steps to reproduce:

  1. Launch terminal.
  2. Open Firefox with keyboard shortcut (for me it's super + b).
  3. Note that Firefox window does not have focus (terminal has focus).

Expected behavior: I expect a newly opened window to have focus.

This frustrating bug was present in Mint 20.

clefebvre commented 2 years ago

I can't reproduce this. Newly mapped Firefox takes focus. What doesn't is a new tab as a result of Firefox already having an instance.

LinuxOnTheDesktop commented 2 years ago

Cf. this report filed against (in effect) Mint 20. Is the problem really solved? I tried just now with Mint 21, on a live USB (from several days ago) and the problem seemed to be present. Perhaps the previously-focused window was no longer focused (that previous window was a terminal, and Firefox was maximised when it [edit: by 'it' I mean Firefox] appeared) but Firefox's URL bar was not focused.

photong commented 2 years ago

Attached is a recording of the problem. I launch Nemo using keyboard shortcut (note how Nemo has focus). I then launch Firefox using keyboard shortcut (note how Firefox appears behind Nemo). Launching Firefox using the panel icon works as expected.

out

mtwebster commented 2 years ago

I can reproduce, but it doesn't happen always, we're trying to figure out what the criteria are. It doesn't always happen -

For instance,

No one has said it's solved, and this bug is still open.

ghost commented 2 years ago

I can't reproduce this on a fresh install of LM 20.0 - Cinnamon 4.6.7. However, reports ensure that it is present from LM 20.1 to LM 21.0

photong commented 2 years ago

I can reproduce this on the beta image.

  1. Boot beta image.
  2. Go to "Keyboard" -> "Shortcuts".
  3. Click on "Launchers" and set new shortcut for "Launch web browser" (e.g., super + b)
  4. Close Keyboard window.
  5. Press shortcut for web browser (super + b); on first launch, Firefox has focus.
  6. Close Firefox and press shortcut for web browser again; this time, window does not have focus (the "x" on top right is not green).
  7. With Firefox still NOT in focus, press shortcut; another window opens without focus.

Pressing super + b will keep spawning new windows, none with focus.

The interesting part is that if you click on a Firefox window and press the shortcut, the new Firefox window WILL have focus (this does not work on installed beta with updates though).

To summarize, on beta image:

Launching from panel (with ctrl + click) always works as expected.