forge-ext / forge

Forge - Tiling and Window Manager for Gnome-Shell
GNU General Public License v3.0
905 stars 49 forks source link

bug: mouse focus is moved position when changing workspace #374

Open CleoMenezesJr opened 5 months ago

CleoMenezesJr commented 5 months ago

(1) Issue/Bug Description/Video Capture/Screenshots

If there are windows in the workspace, when changing workspace using the mouse and scrolling through the activities button, the mouse focus changes position. Screencast from 2024-04-05 09-19-01.webm

(2) Steps to reproduce

  1. Hover over the activities button
  2. Use the mouse scroll button to change workspace

(3) Distribution and Linux version

NAME="Fedora Linux"
VERSION="Rawhide.20240404.n.0 (Silverblue Prerelease)"
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux Rawhide.20240404.n.0 (Silverblue Prerelease)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://silverblue.fedoraproject.org"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-silverblue/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://github.com/fedora-silverblue/issue-tracker/issues"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=rawhide
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=rawhide
SUPPORT_END=2025-05-13
VARIANT="Silverblue"
VARIANT_ID=silverblue
OSTREE_VERSION='Rawhide.20240404.n.0'
Linux fedora 6.9.0-0.rc2.20240403git026e680b0a08.25.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr  3 20:52:52 UTC 2024 x86_64 GNU/Linux

(4) Journal Logs from the last hour

Apr 05 08:56:55 fedora gnome-shell[1308]: Running GNOME Shell (using mutter 46.0) as a Wayland display server
Apr 05 08:56:55 fedora gnome-shell[1308]: Enabling experimental feature 'scale-monitor-framebuffer'
Apr 05 08:56:55 fedora gnome-shell[1308]: Made thread 'KMS thread' realtime scheduled
Apr 05 08:56:56 fedora gnome-shell[1308]: Device '/dev/dri/card1' prefers shadow buffer
Apr 05 08:56:56 fedora gnome-shell[1308]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
Apr 05 08:56:56 fedora gnome-shell[1308]: Created gbm renderer for '/dev/dri/card1'
Apr 05 08:56:56 fedora gnome-shell[1308]: Boot VGA GPU /dev/dri/card1 selected as primary
Apr 05 08:56:56 fedora gnome-shell[1308]: Obtained a high priority EGL context
Apr 05 08:56:56 fedora gnome-shell[1308]: Obtained a high priority EGL context
Apr 05 08:56:56 fedora gnome-shell[1308]: Using public X11 display :1024, (using :1025 for managed services)
Apr 05 08:56:56 fedora gnome-shell[1308]: Using Wayland display name 'wayland-0'
Apr 05 08:56:56 fedora gnome-shell[1308]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Apr 05 08:56:56 fedora gnome-shell[1308]: Will monitor session c1
Apr 05 08:56:57 fedora gnome-shell[1308]: Extension apps-menu@gnome-shell-extensions.gcampax.github.com already installed in /usr/share/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com. /usr/share/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com will not be loaded
Apr 05 08:56:57 fedora gnome-shell[1308]: Extension background-logo@fedorahosted.org already installed in /usr/share/gnome-shell/extensions/background-logo@fedorahosted.org. /usr/share/gnome-shell/extensions/background-logo@fedorahosted.org will not be loaded
Apr 05 08:56:57 fedora gnome-shell[1308]: Extension launch-new-instance@gnome-shell-extensions.gcampax.github.com already installed in /usr/share/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com. /usr/share/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com will not be loaded
Apr 05 08:56:57 fedora gnome-shell[1308]: Extension places-menu@gnome-shell-extensions.gcampax.github.com already installed in /usr/share/gnome-shell/extensions/places-menu@gnome-shell-extensions.gcampax.github.com. /usr/share/gnome-shell/extensions/places-menu@gnome-shell-extensions.gcampax.github.com will not be loaded
Apr 05 08:56:57 fedora gnome-shell[1308]: Extension window-list@gnome-shell-extensions.gcampax.github.com already installed in /usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com. /usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com will not be loaded
Apr 05 08:56:57 fedora org.gnome.Shell.desktop[1308]: Window manager warning: Failed to parse saved session file: Failed to open file “/var/lib/gdm/.config/mutter/sessions/10ab89b0241840650171231821532247500000012960000.ms”: No such file or directory
Apr 05 08:56:57 fedora gnome-shell[1308]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Apr 05 08:56:57 fedora gnome-shell[1308]: Could not get default input sources: TypeError: function GnomeDesktop.get_default_input_sources_finish: At least 2 arguments required, but only 1 passed

                                          Stack trace:
                                            _promisify/proto[asyncFunc]/</<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:454:44
                                            @resource:///org/gnome/shell/ui/init.js:21:20
                                            ### Promise created here: ###
                                            _reload@resource:///org/gnome/shell/ui/status/keyboard.js:233:36
                                            InputSourceSystemSettings@resource:///org/gnome/shell/ui/status/keyboard.js:213:14
                                            _reloadInputSettings@resource:///org/gnome/shell/ui/status/keyboard.js:403:30
                                            _setupInputSettings@resource:///org/gnome/shell/ui/status/keyboard.js:420:14
                                            InputSourceManager@resource:///org/gnome/shell/ui/status/keyboard.js:374:14
                                            getInputSourceManager@resource:///org/gnome/shell/ui/status/keyboard.js:865:31
                                            _init@resource:///org/gnome/shell/misc/inputMethod.js:41:45
                                            InputMethod@resource:///org/gnome/shell/misc/inputMethod.js:25:4
                                            _initializeUI@resource:///org/gnome/shell/ui/main.js:233:19
                                            start@resource:///org/gnome/shell/ui/main.js:175:11
                                            @resource:///org/gnome/shell/ui/init.js:12:47
                                            @resource:///org/gnome/shell/ui/init.js:21:20

Apr 05 08:56:58 fedora gnome-shell[1308]: Registering session with GDM
Apr 05 08:57:34 fedora gnome-shell[2307]: Running GNOME Shell (using mutter 46.0) as a Wayland display server
Apr 05 08:57:34 fedora gnome-shell[2307]: Enabling experimental feature 'scale-monitor-framebuffer'
Apr 05 08:57:34 fedora gnome-shell[2307]: Enabling experimental feature 'kms-modifiers'
Apr 05 08:57:34 fedora gnome-shell[2307]: Enabling experimental feature 'autoclose-xwayland'
Apr 05 08:57:34 fedora gnome-shell[2307]: Enabling experimental feature 'variable-refresh-rate'
Apr 05 08:57:34 fedora gnome-shell[2307]: Made thread 'KMS thread' realtime scheduled
Apr 05 08:57:34 fedora gnome-shell[2307]: Device '/dev/dri/card1' prefers shadow buffer
Apr 05 08:57:34 fedora gnome-shell[2307]: Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
Apr 05 08:57:34 fedora gnome-shell[2307]: Created gbm renderer for '/dev/dri/card1'
Apr 05 08:57:34 fedora gnome-shell[2307]: Boot VGA GPU /dev/dri/card1 selected as primary
Apr 05 08:57:34 fedora gnome-shell[2307]: Obtained a high priority EGL context
Apr 05 08:57:34 fedora gnome-shell[2307]: Obtained a high priority EGL context
Apr 05 08:57:35 fedora gnome-shell[2307]: Using public X11 display :0, (using :1 for managed services)
Apr 05 08:57:35 fedora gnome-shell[2307]: Using Wayland display name 'wayland-0'
Apr 05 08:57:35 fedora gnome-shell[2307]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Apr 05 08:57:35 fedora gnome-shell[2307]: Will monitor session 2
Apr 05 08:57:36 fedora gnome-shell[2307]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Apr 05 08:57:36 fedora gnome-shell[2307]: Gio.UnixInputStream has been moved to a separate platform-specific library. Please update your code to use GioUnix.InputStream instead.
                                          0 inhibit() ["resource:///org/gnome/shell/misc/loginManager.js":209:8]
                                          1 InterpretGeneratorResume() ["self-hosted":1461:33]
                                          2 AsyncFunctionNext() ["self-hosted":852:26]
                                          3 anonymous() ["resource:///org/gnome/shell/ui/init.js":21:19]
Apr 05 08:57:36 fedora gnome-shell[2307]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Apr 05 08:57:36 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 68 with keysym 68 (keycode 2b).
Apr 05 08:57:36 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 76 with keysym 76 (keycode 37).
Apr 05 08:57:37 fedora gnome-shell[2307]: GNOME Shell started at Fri Apr 05 2024 08:57:35 GMT-0300 (Chile Summer Time)
Apr 05 08:57:37 fedora gnome-shell[2307]: Registering session with GDM
Apr 05 08:57:37 fedora gnome-shell[1308]: Shutting down GNOME Shell
Apr 05 08:57:57 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:00:08 fedora gnome-shell[2307]: Spurious clutter_actor_allocate called for actor 0x5626ae26e170/unnamed [StIcon] which isn't a descendent of the stage!
Apr 05 09:00:13 fedora gnome-shell[2307]: clutter_actor_set_allocation_internal: assertion '!isnan (box->x1) && !isnan (box->x2) && !isnan (box->y1) && !isnan (box->y2)' failed
Apr 05 09:00:13 fedora gnome-shell[2307]: ../clutter/clutter/clutter-actor.c:8692: Actor 'unnamed [StDrawingArea]' tried to allocate a size of -2147483648.00 x -2147483648.00
Apr 05 09:00:13 fedora gnome-shell[2307]: ../clutter/clutter/clutter-actor.c:8692: Actor 'unnamed [StBin]' tried to allocate a size of -2147483648.00 x -2147483648.00
Apr 05 09:03:12 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:05:46 fedora gnome-shell[2307]: Source ID 8408 was not found when attempting to remove it
Apr 05 09:05:46 fedora gnome-shell[2307]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Apr 05 09:05:48 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 76 with keysym 76 (keycode 37).
Apr 05 09:05:48 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 68 with keysym 68 (keycode 2b).
Apr 05 09:07:40 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:07:42 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:10:08 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:10:39 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:10:52 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:11:28 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:11:28 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:13:24 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:13:24 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:13:37 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:13:51 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:13:51 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:14:14 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:14:14 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:14:14 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:14:47 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:14:47 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:15:05 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 76 with keysym 76 (keycode 37).
Apr 05 09:15:05 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 68 with keysym 68 (keycode 2b).
Apr 05 09:15:19 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:16:33 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:17:02 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:17:02 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:17:10 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:17:26 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:17:26 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:17:40 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 76 with keysym 76 (keycode 37).
Apr 05 09:17:40 fedora gnome-shell[2307]: Window manager warning: Overwriting existing binding of keysym 68 with keysym 68 (keycode 2b).
Apr 05 09:17:51 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:18:14 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Apr 05 09:19:01 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:19:01 fedora gnome-shell[2307]: pipewire remote error: id:2 no more input formats
Apr 05 09:19:14 fedora gnome-shell[2307]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' faile

GNOME Shell version

46.0

Forge version

78

Other installed/enabled extensions

auto-activities@CleoMenezesJr.github.io
  Name: Auto Activities
  Description: Show activities overview when there are no windows, or hide it when there are new windows.

This extension is a fork of the Auto Activities extension, its former owner transferred its repository to me.
  Path: /var/home/cleomenezesjr/.local/share/gnome-shell/extensions/auto-activities@CleoMenezesJr.github.io
  URL: https://github.com/CleoMenezesJr/auto-activities
  Original author: mi-jan-sena@proton.me
  Version: 46.1 (13)
  Enabled: Yes
  State: ACTIVE

forge@jmmaranan.com
  Name: Forge
  Description: Tiling and window manager for GNOME

Please report bugs/issues on https://github.com/forge-ext/forge/issues
  Path: /var/home/cleomenezesjr/.local/share/gnome-shell/extensions/forge@jmmaranan.com
  URL: https://github.com/forge-ext/forge
  Version: 78
  Enabled: Yes
  State: ACTIVE

weatheroclock@CleoMenezesJr.github.io
  Name: Weather O'Clock
  Description: Display the current weather inside the pill next to the clock. GNOME Weather is required for this extension to work.
  Path: /var/home/cleomenezesjr/.local/share/gnome-shell/extensions/weatheroclock@CleoMenezesJr.github.io
  URL: https://github.com/CleoMenezesJr/weather-oclock
  Original author: JasonLG1979@github.io
  Version: 46.2
  Enabled: Yes
  State: ACTIVE

(6) Monitor Setup

1080p

Other Notes

No response

jmmaranan commented 5 months ago

I think this is related to #371. I'll release the fix for it this weekend.

jmmaranan commented 5 months ago

@CleoMenezesJr - can you check if fixed by disabling the Move Pointer With Focus from prefs?

OsoRojo commented 5 months ago

@jmmaranan That's what I had to do to disable this behavior. It just randomly appeared, as apparently it defaults to on. Took me awhile track it down. Might consider NOT having it on by default. I find it a strange behavior, but can respect that some people may want it for: reasons.

jmmaranan commented 4 months ago

This should be fixed (by disabling by default) on either v46-80 or v46-77