Skip to content

bug: Focus is lost if a window is closed even if 'hover on focus' is active #258

@hakan-demirli

Description

@hakan-demirli

Description

Focus is lost if a window is closed when tiling is active. If tiling is not active, everything works normal. Shortcuts (<super+hjkl>) do not work if the focus is lost. Focus can only be regained if I click on a window.

Problem Explanation

If secondary click is active on gnome, the focus will shift with the mouse. Secondary click can be enabled using gnome-tweaks.
Gnome Tweaks > Windows > Secondary-Click

The bug happens if tiling is active and a window is closed. Here is a video with the mouse focus. The same thing happens if I close windows with alt+f4. Focus is lost.

Screencast.from.2023-07-15.04-11-54.mp4

Expected Behavior

It should focus on the window under the mouse. Or focus on a random window since gnome probably will update the focus instantly to the correct window.

Reprodution

Steps To Reproduce

  • Enable secondary click from gnome-tweaks.
    • Install gnome-tweaks:
      • They can be installed on Ubuntu: sudo apt install gnome-tweaks
      • They can be installed on Arch: sudo pacman -S gnome-tweaks
    • Enable Secondary-Click
      • Gnome Tweaks > Windows > Secondary-Click
  • Install forge extension
  • Open bunch of windows no matter the app.
  • Close them one by one and examine the focus.
    • I suggest Alt+f4 or clicking the 'x' button.

Details

It happens with any application?

  • [ x ] Yes, it applies to any application.

It happens only on one computer?

  • [ x ] No. I have tried it on more than one computer.

It happens only with some specific gnome configuration?

  • [x ] I don't think that the configuration matters.

It happens only with some specific extension installed?

  • [ x ] I don't think that the installed extensions affect the bug/behavior.

Environment

  • Distro version : Linux archlinux 6.4.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 11 Jul 2023 05:13:39 +0000 x86_64 GNU/Linux
  • GNOME Shell version: GNOME Shell 44.3 (on wayland)
  • Forge source : extensions.gnome.org
  • Forge version : Version: 71

Display Setup

Notebook 1920x1080 144hz

Extension Configuration

Nothing changed.

Enabled Extensions

Only Forge is enough. The same thing happens even if only forge is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions