forge-ext / forge

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

bug: Windows always open on the secondary display #299

Open arkonbob opened 10 months ago

arkonbob commented 10 months ago

Description

Windows always open on the secondary display

Problem Explanation

When new windows / applications are opened, they appear briefly where they should (the primary display) then shift immediately to the secondary display. This also often causes tabbed windows on the secondary display to break out of the tab container.

The bug happens when opening new applications / windows.

Expected Behavior

Reproduction

Steps To Reproduce

  1. Attach an external display to a laptop.
  2. In Gnome settings, configure the external display as the primary display.
  3. Click on an application in the dock. Observe that the new application window opens on the secondary (built-in) display.

Details

It happens with any application?

It happens only on one computer?

It happens only with some specific gnome configuration?

It happens only with some specific extension installed?

Diagnostics

Under what conditions does it happen?

Environment

Display Setup

Displays:

  Display: wayland server: X.Org v: 1.23.2 with: Xwayland v: 23.2.0
    compositor: gnome-shell v: 45.0 driver: dri: iris gpu: i915 resolution:
    1: External LG HD monitor 3840x2160~60Hz
    2: Built-in laptop display 2048x1280~60Hz

Extension Configuration

[/]
auto-split-enabled=false
css-last-update=uint32 37
css-updated='1690565469579'
float-always-on-top-enabled=false
focus-border-toggle=false
showtab-decoration-enabled=false
stacked-tiling-mode-enabled=false
tabbed-tiling-mode-enabled=true
tiling-mode-enabled=true
window-gap-size-increment=uint32 1

Enabled Extensions

color-picker@tuberry
  Name: Color Picker
  Description: Simple color picker for gnome shell

For support, please report any issues via the homepage link below.
  Path: /home/rob/.local/share/gnome-shell/extensions/color-picker@tuberry
  URL: https://github.com/tuberry/color-picker
  Version: 38
  State: ENABLED

quick-settings-audio-panel@rayzeq.github.io
  Name: Quick Settings Audio Panel
  Description: Create a new panel containing volumes and media control in the quick settings
  Path: /home/rob/.local/share/gnome-shell/extensions/quick-settings-audio-panel@rayzeq.github.io
  URL: https://github.com/Rayzeq/quick-settings-audio-panel
  Version: 33
  State: ENABLED

espresso@coadmunkee.github.com
  Name: Espresso
  Description: Espresso disables the usual auto suspend and screensaver functionality and optionally Night Light with options to show an Espresso icon in the top panel, to enable Espresso when a fullscreen application is running, to restore state across reboots, to provide notifications, to enable Espresso when specific applications are running, or to pause Night Light when Espresso is enabled or only when specific applications are running. Espresso also provides some support for docking stations including options to enable Espresso when charging and/or when docked to external monitors and to allow temporarily overriding the docking support without affecting the stored state.

Espresso is a fork of the Caffeine extension.

Please leave feedback or report issues through the Extension Homepage
  Path: /home/rob/.local/share/gnome-shell/extensions/espresso@coadmunkee.github.com
  URL: https://github.com/coadmunkee/gnome-shell-extension-espresso
  Version: 9
  State: ENABLED

wireless-hid@chlumskyvaclav.gmail.com
  Name: Wireless HID
  Description: This extension shows the battery of the wireless keyboards, mice, and g
ame controllers in percentages and colors. Multiple devices are supported.
  Path: /home/rob/.local/share/gnome-shell/extensions/wireless-hid@chlumskyvaclav.gmail.com
  URL: https://github.com/vchlum/wireless-hid
  Original author: chlumskyvaclav@gmail.com
  Version: 16
  State: ENABLED

apps-menu@gnome-shell-extensions.gcampax.github.com
  Name: Applications Menu
  Description: Add a category-based menu for applications.
This extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME's GitLab instance instead.
  Path: /home/rob/.local/share/gnome-shell/extensions/apps-menu@gnome-shell-extensions.gcampax.github.com
  URL: https://gitlab.gnome.org/GNOME/gnome-shell-extensions
  Version: 55
  State: ENABLED

places-menu@gnome-shell-extensions.gcampax.github.com
  Name: Places Status Indicator
  Description: Add a menu for quickly navigating places in the system.
This extension is part of Classic Mode and is officially supported by GNOME. Please do not report bugs using the form below, use GNOME's GitLab instance instead.
  Path: /home/rob/.local/share/gnome-shell/extensions/places-menu@gnome-shell-extensions.gcampax.github.com
  URL: https://gitlab.gnome.org/GNOME/gnome-shell-extensions
  Version: 58
  State: ENABLED

guillotine@fopdoodle.net
  Name: Guillotine
  Description: Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
  Path: /home/rob/.local/share/gnome-shell/extensions/guillotine@fopdoodle.net
  URL: https://gitlab.com/ente76/guillotine/
  Version: 18
  State: ENABLED

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: /home/rob/.local/share/gnome-shell/extensions/forge@jmmaranan.com
  URL: https://github.com/forge-ext/forge
  Version: 75
  State: ENABLED

ubuntu-appindicators@ubuntu.com
  Name: Ubuntu AppIndicators
  Description: Support app indicators and legacy tray icons in top panel, as the default Ubuntu experience. System update of AppIndicator and KStatusNotifierItem Support extension.
  Path: /usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com
  URL: https://github.com/ubuntu/gnome-shell-extension-appindicator
  State: ENABLED

ubuntu-dock@ubuntu.com
  Name: Ubuntu Dock
  Description: A dock for the Gnome Shell, default Ubuntu experience. This extension is a modified version of Dash To Dock with different defaults. Dash To Dock can be installed to replace it and give more (but unsupported) configuration options.
  Path: /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com
  URL: https://micheleg.github.io/dash-to-dock/
  Original author: micxgx@gmail.com
  Version: 87
  State: ENABLED
alexwpe commented 10 months ago

I have the same issue on OpenSUSE Tumbleweed and Ubuntu 23.10 as well (Gnome 45/Wayland).

JfrAziz commented 10 months ago

same issue on Arch Linux Gnome 45. some apps always open on the secondary display, like Terminal, but others apps seems fine.

alexwpe commented 10 months ago

It only seems to happen when you have your secondary display on the left. So a quick workaround for this problem is to place your secondary display virtually to the right of your main display in Gnome Preferences -> Screens.

trdsr commented 9 months ago

Same issue here on Debian 12 GNOME 43.

PixsaOJ commented 5 months ago

Manjaro / Gnome 45 / Wayland

Does not matter where screens are, It will always choose most left screen

PixsaOJ commented 5 months ago

Possibly related:

https://github.com/forge-ext/forge/blob/89f264d9b28d9d2037c042a8081795f7fbe97966/lib/extension/window.js#L1337

Issue might also have something to do with workspaces