Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1322356

Summary: Wrong position of remote-viewer windows in fullscreen mode with 2 real monitors
Product: Red Hat Enterprise Linux 7 Reporter: Andrei Stepanov <astepano>
Component: virt-viewerAssignee: Default Assignee for SPICE Bugs <rh-spice-bugs>
Status: CLOSED WORKSFORME QA Contact: SPICE QE bug list <spice-qe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 7.3CC: astepano, dblechte, jjongsma, juzhou, mxie, mzhan, pgrunt, rbalakri, rduda, tpelka, tzheng, xiaodwan
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:
: 1362202 (view as bug list) Environment:
Last Closed: 2017-09-06 15:14:03 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:
Bug Depends On:    
Bug Blocks: 1362202    
Attachments:
Description Flags
xprop for remote-viewer windows 1 & 2 none

Description Andrei Stepanov 2016-03-30 11:38:23 UTC
Created attachment 1141696 [details]
xprop for remote-viewer windows 1 & 2

Two remote-viewer windows appears on the same physical monitor.

Client is: virt-viewer-2.0-6.el7.x86_64
Guest is: windows7/rhel7
Host is: qemu-kvm-rhev-2.3.0-31.el7_2.10.x86_64

Always reproducible.

1. Client should have two physical monitors.
2. In Gnome open Settings->Displays
3. Select second monitor, and make it primary. (Gnome panels should appear on it)
4. Go to RHEVM user-portal.
5. Select VM and change console options to connect in fullscreen mode.
6. Connect to the VM.

Two remote-viewer windows will appear on the first monitor.

Comment 2 Andrei Stepanov 2016-03-30 12:58:12 UTC
After some inspection, it became obvious that bug is not always reproducible.

Comment 3 Andrei Stepanov 2016-03-30 16:52:30 UTC
I can reproduce the bug with:

spice-glib-0.26-7.el7.x86_64
spice-gtk3-0.26-7.el7.x86_64
virt-viewer-2.0-7.el7.x86_64
spice-glib-devel-0.26-7.el7.x86_64

Comment 4 David Blechter 2016-04-01 13:54:52 UTC
(In reply to Andrei Stepanov from comment #3)
> I can reproduce the bug with:
> 
> spice-glib-0.26-7.el7.x86_64
> spice-gtk3-0.26-7.el7.x86_64
> virt-viewer-2.0-7.el7.x86_64
> spice-glib-devel-0.26-7.el7.x86_64

You have selected 7.3 in the "Version". It does not make any sense, as we have no builds for 7.3

Comment 5 Andrei Stepanov 2016-04-01 14:41:37 UTC
David, current RHEL7.2 repo has version:  virt-viewer-2.0-6.el7.x86_64

I have tested with virt-viewer-2.0-7.el7.x86_64 which should be a part of upcoming RHEL7.3. I just wanted to show that the latest available build also has this problem.

Comment 6 Pavel Grunt 2016-08-01 08:49:18 UTC
Cannot reproduce, moving to 7.4

Comment 7 Andrei Stepanov 2016-08-03 17:20:56 UTC
I cannot reproduce it on RHEL7.3 (based on repo Aug 3 2016) with virt-viewer-2.0-11.el7.x86_64

Comment 8 Radek Duda 2016-08-04 09:40:02 UTC
It is reproducible on client configuration with monitors of different resolution, while the resolution of primary monitor has to be lower.

   primary       secondary
  +-------+  +---------------+
  |       |  |               |
  |       |  |               |
  |       |  |               |
  +-------+  |               |
  1280x1024  +---------------+
                1920x1080

two VM displays are then attached on the secondary monitor and retain the resolution of primary monitor:

  primary  full HD (secondary)
 +-------+  +---------------+
 |       |  |***|Guest  |***|
 |       |  |***|display|***|
 |       |  |***|       |***|
 +-------+  |***+-------+***|
1280x1024   +---------------+
               1920x1080
reproduced also on monitor configuration: primary: 1680x1050, secondary 1920x1080.
Reproducible only on Win7 guest (60%). 

Client rhel 7.3 nightly:
spice-glib-0.31-5.el7.x86_64
spice-gtk-0.31-5.el7.x86_64
virt-viewer-2.0-11.el7.x86_64

host:
qemu-kvm-rhev-2.3.0-31.el7_2.19.x86_64

Comment 9 Radek Duda 2016-10-14 15:32:51 UTC
Update:
It is reproducible on rhel7.3 client VM (from rhev-m)
spice-vdagent-0.14.0-14.el7.x86_64
spice-protocol-0.12.11-1.el7.noarch
spice-glib-0.31-6.el7.x86_64
spice-server-0.12.4-19.el7.x86_64
spice-gtk3-0.31-6.el7.x86_64

virt-viewer-2.0-12.el7.x86_64

guest - rhel7.2-z
spice-vdagent-0.14.0-10.el7.x86_64
spice-server-0.12.4-15.el7_2.2.x86_64
spice-gtk3-0.26-5.el7.x86_64
spice-glib-0.26-5.el7.x86_64


primary display of client must be attached on lower resolution monitor as stated in comment #8. 
Monitor mapping must be 1:2;2:1 as also stated in comment #8. 

reproducibility: 100%

Comment 10 Pavel Grunt 2016-12-09 20:01:39 UTC
I can be a window manager issue, please retest it when the bug 1387025 is solved

Comment 11 Pavel Grunt 2017-05-10 07:30:09 UTC
Is it still reproducible (using the rebased GNOME desktop)?

Comment 12 Andrei Stepanov 2017-09-06 15:14:03 UTC
I cannot reproduce this bug with RHEL 7.4

spice-gtk3-0.33-6.el7.x86_64
virt-viewer-5.0-7.el7.x86_64
spice-glib-0.33-6.el7.x86_64

Tested on the RHEL 7.4 client with next display configuration:
Primary: 800x600
Secondary: 1280x1024