Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpv is shown fullscreen over locker #164

Open
coffebar opened this issue Dec 22, 2022 · 2 comments
Open

mpv is shown fullscreen over locker #164

coffebar opened this issue Dec 22, 2022 · 2 comments

Comments

@coffebar
Copy link

coffebar commented Dec 22, 2022

Issue

If mpv is in full screen mode, xsecurelock is not visible.
Every time i using mpv, and screen is locked, my password prompt looks like that:
image

This should be investigated.

Env

Version:
1.8.0
My platform:
Linux Arch x86, i3wm

My options:

XSECURELOCK_COMPOSITE_OBSCURER=0 XSECURELOCK_SHOW_USERNAME=0 \
	XSECURELOCK_SHOW_HOSTNAME=0 XSECURELOCK_SHOW_DATETIME=1 \
	XSECURELOCK_PASSWORD_PROMPT=kaomoji xsecurelock

workaround

run this script before lock

#!/bin/sh

# exit fullscreen from mpv before lock screen
/usr/bin/xdotool key \
	--clearmodifiers \
	--window "$(/usr/bin/xdotool search --onlyvisible --class mpv)" Escape
@divVerent
Copy link
Contributor

In other words, on your system mpv manages to disable compositing and thus showing of xsecurelock's Composite Overlay Window.

Your setting of XSECURELOCK_COMPOSITE_OBSCURER=0 reveals that this is likely what is going on here.

Sadly fixing this depends on settings of your compositing manager - you need to configure it so it does not turn off compositing when a fullscreen application is running. Which are you using?

@coffebar
Copy link
Author

I'm using picom compositor.
Btw, if i open a terminal window in fullscreen, it seems compositing is not disabled (I can see my wallpapers through a 80% transparent window)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants