Bug 1027152

Summary: Windows doesn't occur on their original location after undocking and docking notebook
Product: Red Hat Enterprise Linux 7 Reporter: Branislav Náter <bnater>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 7.0CC: isenfeld, jan.public, jkoten, lzachar, mclasen, mdomonko
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 07:28:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Branislav Náter 2013-11-06 09:48:27 UTC
Description of problem:
I'm running system on laptop and I'm using two monitor setup, regular monitor and laptop display. Regular monitor is the primary one. When I undock laptop, all windows from primary monitor move to laptop display, which is expected. But when I get laptop back to dock, all windows stay on laptop screen. This is pretty annoying. I have to move all windows to their original location.

Version-Release number of selected component (if applicable):
gnome-shell-3.8.4-2.fc19
gnome-shell-3.8.4-10.el7

How reproducible:
always

Steps to Reproduce:
1. see description

Additional info:
I'm running Fedora 19 but same issue appear on rhel-7.

Comment 1 RHEL Program Management 2014-03-22 06:33:42 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Michal Domonkos 2015-05-14 10:05:02 UTC
This seems to work fine on GNOME-3.14 except that it doesn't with the very first undock/dock event since the gnome session start.  Reproducer:

1. In GNOME, set up a layout such that both the laptop's display and an external display is used
2. Make the external display primary
3. Open two windows and place one on each screen
4. Undock and dock
6. Notice how both windows remain on the laptop's display (incorrect behavior)
7. Move one of them back to the external display
8. Undock and dock
9. Now the windows are placed in their original locations, i.e. one of them being on the external display (correct behavior)

Logging out and in again, the same scenario is repeated.

Comment 4 Michal Domonkos 2015-08-07 10:03:45 UTC
Revisiting this issue, it actually turns out to be pretty random in terms of reproducibility.  I would say it depends on whether the secondary display is ready at the time gnome-shell tries to restore individual windows.  So if the display on which a window was before undocking doesn't activate fast enough on docking, the window will just end up on the display which is already active.

Comment 6 RHEL Program Management 2020-12-15 07:28:11 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.