elementary / wingpanel

Stylish top panel that holds indicators and spawns an application launcher
https://elementary.io
GNU General Public License v3.0
137 stars 44 forks source link

Panel appears on wrong display after sleep #444

Open aral opened 2 years ago

aral commented 2 years ago

What Happened?

gala-layout-bug-system-bar

Honey, I just woke up like this :)

(Main display: 4K, laptop screen 1080p. This is what the screen looked like when it woke from screen. I opened the menu manually afterwards to show that it was active.)

Steps to Reproduce

First time I’m seeing this particular layout bug.

Expected Behavior

It should lay out properly when returning from sleep.

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

danirabbit commented 2 years ago

Hey Aral, please make sure to use descriptive bug titles. It makes it harder to triage issues when the descriptions aren't clear

peteruithoven commented 1 year ago

I also often experience this issue after a suspend. The panel appears partly on the left (secondary) screen. It's width is that of the wider right (primary) screen, meaning it partly overlaps the right (primary) screen.

Screenshot from 2023-04-15 13 10 55@2x-3000

It doesn't always happen. I'll try to look into this further. Any tips on debugging this are appreciated.

Build in display: 2256x1504 (left) External monitor: 3840x2160 (right)

I often manually initiate suspend through the applications menu. The external monitor isn't disconnected during suspend.

After a reboot the wingpanel appears normally.

I often use xrandr to use display scaling, because the Framework laptop screen has a terrible resolution, but this also happens when I don't do this. https://community.frame.work/t/using-elementary-os-on-the-framework-laptop/4453#display-scaling-5

Because I had issues just killing wingpanel in the past I often just move the build-in display to a different location relative to the Dell Inc. display in the Display settings to fix the wingpanel position.

Using Scaling factor: HiDPI (2x).