forge icon indicating copy to clipboard operation
forge copied to clipboard

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

Open hakan-demirli opened this issue 11 months ago • 3 comments

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.

https://github.com/forge-ext/forge/assets/78746991/db1baa71-44ac-4cf1-8b36-0a03d6e002b0

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.

hakan-demirli avatar Jul 15 '23 01:07 hakan-demirli