gnome-shell-extension-focus-changer icon indicating copy to clipboard operation
gnome-shell-extension-focus-changer copied to clipboard

Only works partly on a multi-monitor setup

Open dehoej opened this issue 3 years ago • 7 comments
trafficstars

I am having 3 monitors. The middle one is the primary. I can switch focus from windows on the middle to the right monitor, but not back. And i cant switch focus to the left monitor.

OS: Ubuntu 22.04 Gnome version: 42.5

dehoej avatar Nov 22 '22 08:11 dehoej

Can you in settings try a new keybinding for focus left?

I'm thinking that maybe there is another keybinding blocking it in Ubuntu.

martinhjartmyr avatar Nov 22 '22 08:11 martinhjartmyr

I don't think that is the case since i can switch windows back and forth on the primary monitor and also the right one. But when i try to navigate back to the primary monitor to the left, ino windows have focus any more. But i just tried to switch keyboard bindings, and the result is the same.

dehoej avatar Nov 22 '22 09:11 dehoej

Okay, no keybinding problem then.

I switched to a horizontal 3 monitor setup now with the primary in the middle. I can't replicate the problem.

Do you have all monitors lined up at the top of the screen in the monitor setup? If not, please try that to see if it helps.

martinhjartmyr avatar Nov 22 '22 19:11 martinhjartmyr

Closing due to inactivity. If your issue persists, we can re-open this.

martinhjartmyr avatar Feb 19 '23 11:02 martinhjartmyr

I seem to have the same issue, or, well, at least some issue that looks similar. I also have three monitors, they are all aligned on the top in this setup:

image

I open three separate applications on each monitor and maximize their windows. When I click on the application in the middle monitor, I can move the focus to the app on the left. When trying to focus on the right from the middle monitor, on the first invocation the focus is removed from all windows, on the second invocation it successfully moves the focus to the application on the right monitor. However, afterwards I can only switch focus between the left and the right monitor, cannot get back to the middle monitor anymore.

Note that the laptop's built-in monitor is not used (lid is closed), otherwise I suspect that would be monitor number 1. I cannot use it with the three external screens though because the maximum number of supported screens is 3 with my hardware.

GergelyKalmar avatar Jul 06 '23 09:07 GergelyKalmar

Not sure if related, but I'm also seeing the following error appear three times in the logs when switching:

Jul 6 11:22:32 flux gnome-shell[38619]: JS ERROR: TypeError: this._settings is null#012_sync@resource:///org/gnome/shell/ui/dateMenu.js:525:28#012_updateCount@resource:///org/gnome/shell/ui/dateMenu.js:521:14#012countUpdated@resource:///org/gnome/shell/ui/messageTray.js:788:15#012_onNotificationDestroy@resource:///org/gnome/shell/ui/messageTray.js:831:14#012destroy@resource:///org/gnome/shell/ui/messageTray.js:515:14#012destroyNonResidentNotifications@resource:///org/gnome/shell/ui/messageTray.js:901:39#012_onFocusAppChanged@resource:///org/gnome/shell/ui/notificationDaemon.js:349:24#012changeFocus@/.../.local/share/gnome-shell/extensions/focus-changer@heartmire/extension.js:34:27#012_bindShortcut/<@/.../.local/share/gnome-shell/extensions/focus-changer@heartmire/extension.js:263:24

I tried using different keyboard shortcuts, the results were the same.

GergelyKalmar avatar Jul 06 '23 09:07 GergelyKalmar

Hi,

I was having this problem and I managed to get rid of this just changing :

    return windows.filter(w => w.get_monitor() === monitor && w.is_hidden() === false);

to : return windows.filter(w.is_hidden() === false);

in extension.js line 234.

I think this is kind of a quick patch but it's enougth for my use.

Hope it helps someone :)

laloutre12 avatar Jan 26 '24 10:01 laloutre12