New issue
Advanced search Search tips

Issue 621010 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Notifications appear in the wrong position after switching between displays with different resolutions

Reported by osan...@osandov.com, Jun 17 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36

Steps to reproduce the problem:
1. Start with laptop display on, external monitor off. E.g., xrandr --output LVDS1 --mode 1600x900 --output DP1 --off
2. Get a notification (e.g., with the example "Notify me!" button at https://developer.mozilla.org/en-US/docs/Web/API/notification) and close it
3. Disable the laptop monitor and change to the external monitor. E.g., xrandr --output LVDS1 --off --output DP1 --mode 2560x1440
4. Get another notification

What is the expected behavior?
The second notification should appear at the bottom right of the external monitor.

What went wrong?
The second notification appears in the middle of the screen, which corresponds to the bottom right of the smaller resolution laptop monitor.

Did this work before? N/A 

Chrome version: 51.0.2704.84  Channel: stable
OS Version: 
Flash Version: Shockwave Flash 21.0 r0
 
Screenshot_2016-06-16_21-57-42.png
184 KB View Download
Screenshot_2016-06-16_21-57-59.png
273 KB View Download

Comment 1 by mukai@chromium.org, Jun 17 2016

Cc: dewittj@chromium.org
Project Member

Comment 2 by bugdroid1@chromium.org, Jul 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/86453717f7fe8a57bb407cadcf337aab80fd7e22

commit 86453717f7fe8a57bb407cadcf337aab80fd7e22
Author: osandov <osandov@osandov.com>
Date: Wed Jul 13 05:05:09 2016

Realign message center popups when displays are added or removed

When switching between displays with different resolutions (e.g., plugging in an external monitor to a laptop), there is no "DisplayMetricsChanged" event on Linux. This causes notifications to appear in the wrong position. Handle this by checking if the primary display has changed whenever a display is added or removed.

BUG= 621010 

Review-Url: https://codereview.chromium.org/2078773003
Cr-Commit-Position: refs/heads/master@{#405036}

[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/AUTHORS
[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/ui/message_center/views/desktop_popup_alignment_delegate.cc
[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/ui/message_center/views/desktop_popup_alignment_delegate.h

Project Member

Comment 3 by bugdroid1@chromium.org, Jul 13 2016

Labels: merge-merged-2795
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/86453717f7fe8a57bb407cadcf337aab80fd7e22

commit 86453717f7fe8a57bb407cadcf337aab80fd7e22
Author: osandov <osandov@osandov.com>
Date: Wed Jul 13 05:05:09 2016

Realign message center popups when displays are added or removed

When switching between displays with different resolutions (e.g., plugging in an external monitor to a laptop), there is no "DisplayMetricsChanged" event on Linux. This causes notifications to appear in the wrong position. Handle this by checking if the primary display has changed whenever a display is added or removed.

BUG= 621010 

Review-Url: https://codereview.chromium.org/2078773003
Cr-Commit-Position: refs/heads/master@{#405036}

[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/AUTHORS
[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/ui/message_center/views/desktop_popup_alignment_delegate.cc
[modify] https://crrev.com/86453717f7fe8a57bb407cadcf337aab80fd7e22/ui/message_center/views/desktop_popup_alignment_delegate.h

Project Member

Comment 4 by sheriffbot@chromium.org, Jul 14 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment