pop-os / shell

Pop!_OS Shell
GNU General Public License v3.0
4.89k stars 268 forks source link

:bug: Opening a new tab in Gnome-Terminal moves the terminal window to a different monitor #1646

Open kbondarev opened 1 year ago

kbondarev commented 1 year ago

(1) Issue/Bug Description:

Opening a new tab in Gnome-Terminal moves the terminal window to a different monitor.

(2) Steps to reproduce (if you know):

  1. Set tiling mode on
  2. Have 2 monitors (built-in from laptop + external)
  3. Open gnome-terminal and any other app (e.g. gnome files) tiled up side by side on the external monitor
  4. Press "Ctrl+Shift+T" shortcut inside gnome-terminal to open a new tab
  5. The terminal window will jump to the laptop's built-in monitor

    Doesn't happen if there are no other windows tiled up with the terminal. Neither if there are already at least 2 tabs open in the terminal.

(3) Expected behavior:

The terminal window should stay on the same screen it was originally when a new tab is openend.

(4) Distribution (run cat /etc/os-release):

$ cat /etc/os-release 
NAME="Fedora Linux"
VERSION="38 (Workstation Edition)"
ID=fedora
VERSION_ID=38
VERSION_CODENAME=""
PLATFORM_ID="platform:f38"
PRETTY_NAME="Fedora Linux 38 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:38"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f38/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=38
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=38
SUPPORT_END=2024-05-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation

(5) Gnome Shell version:

$ gnome-shell --version
GNOME Shell 44.3

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

$ dnf info gnome-shell-extension-pop-shell
Last metadata expiration check: 0:01:06 ago on Mon 24 Jul 2023 09:39:05 PM EDT.
Installed Packages
Name         : gnome-shell-extension-pop-shell
Version      : 1.2.0^11.b5accce
Release      : 1.fc38
Architecture : noarch
Size         : 421 k
Source       : gnome-shell-extension-pop-shell-1.2.0^11.b5accce-1.fc38.src.rpm
Repository   : @System
From repo    : updates
Summary      : GNOME Shell extension for advanced tiling window management
URL          : https://github.com/pop-os/shell
License      : GPL-3.0-only
Description  : Pop Shell is a keyboard-driven layer for GNOME Shell which allows for quick and
             : sensible navigation and management of windows.  The core feature of Pop Shell
             : is the addition of advanced tiling window management - a feature that has been
             : highly-sought within our community.  For many - ourselves included - i3wm has
             : become the leading competitor to the GNOME desktop.

(7) Where was Pop Shell installed from:

via dnf

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):

Screenshot from 2023-07-24 21-42-35 Screenshot from 2023-07-24 21-42-40 Screenshot from 2023-07-24 21-42-46

(9) Other Installed/Enabled Extensions:

Only these two besides pop-shell:

(10) Other Notes:

None.

leviport commented 1 year ago

I have a hunch that this is related to Wayland (which I assume you're using since you're on Fedora). On multi-display setups, especially ones with portrait-oriented monitors, I've seen windows hop around every now and then while running Pop with Wayland. I've not seen the same things happen on X11, at least not nearly as frequently.

samuelsov commented 8 months ago

Not directly related to PopOS but I have a similar problem in Fedora 39 / Gnome 45.4 / Wayland, 2 screens with Tiling Assistant. It only happens when the terminal is tiled to one side (not if bottom/top or corner). If I disable Tiling Assistant, the problem disappear.

Also, it's only when creating a 2nd tab. After that, if I re-position the window and open a 3rd tab, it won't cause the issue again.

securitym0nkey commented 8 months ago

Not directly related to PopOS but I have a similar problem

I'm able to confirm this. Facing same issues with Gnome on Arch having Windows tiled using gTile.