Turning on or off second monitor with the screensaver on exposes open windows

Open
#775 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
desktop

Research direction

No source files, tests, or entry points are named. Start by reproducing the issue with two joined displays while locking, suspending, waking, and changing the secondary display state. Done means the screensaver remains visible throughout and open windows are never exposed.

Written by the indexing model from the issue text.

Description

Distribution

Arch Linux x86_64, kernel 6.17.9-arch1-1

Package version

6.6.2

Graphics hardware in use

AMD RX6800, not using the integrated graphics of Ryzen 5 5600G

Frequency

Always

Bug description

I have two monitors. The main one is 27" 1440p(main display) and the other one is 23" 1080p, running in "Join Displays" mode. Since the secondary display is quite old, it doesn't wake up automatically when it receives a signal from my pc, and this is where my issue stems from. After waking up from suspend, the screensaver(with login box of course) shows up on the main monitor, which turned on automatically. However, when I turn on the secondary display, the screensaver goes away , exposing the open windows and their contents. After 1-2 seconds, the screensaver returns and I can log in as normal. This also happens when I lock the screen manually and turn the secondary monitor off.

Steps to reproduce
  • Have 2 monitors connected in "Join Displays" mode
  • Suspend
  • Wake up the computer, with only one monitor being turned on.
  • Turn on the second monitor.
  • The desktop and all the open windows show up for 1-2 seconds.
  • Lock the screen.
  • Turn off second monitor.
  • The desktop and all the open windows show up for 1-2 seconds.
Expected behavior

When turning on or off the second display, it should just show the screensaver, instead of exposing the open windows.

Additional information

This could be a security concern for some people, as passwords and other sensitive information might get displayed unintentionally.

Dominant language
C
Stars
245
Forks
127
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/muffin

All issues in linuxmint/muffin

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.