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

--screenshots is flipped horizontally && unable to unlock using a 'complied from source' version #35

Open
Nephty opened this issue Feb 27, 2023 · 3 comments
Labels
E-hyprland This issue is related to Hyprland compositor.

Comments

@Nephty
Copy link

Nephty commented Feb 27, 2023

I tried using the --screenshots options, but the result was a horizontally flipped screenshot. After finding no other instance of this issue, I tried to go in the source code and change the transforms in the handle_screencopy_frame_flags method. I compiled my new version and locked my computer. After that, I was unable to unlock and it felt like the password was not even being checked (usually, it take a few milliseconds before the 'wrong' text shows up, but in my case it was instantaneous).

Does anyone have any idea why :

  • The screenshot is being flipped horizontally ?
  • I'm unable to unlock when using a compiled from source version ?

I also couldn't find the debug log file. If anyone could provide me with the path to the logs, it'd be very helpful.

swaylock -v

swaylock version v1.6.11 (Feb 27 2023, branch 'master')

Running on Fedora Linux 37 (Workstation Edition) x86_64
on Hyprland (Hyprland.x86_64 19.git.e1d7a13333v0.19.1-1.fc37 @copr:copr.fedorainfracloud.org:kasion:Hyprland.git)

PS : when using dnf install, I'm able to unlock just fine, but the screenshot is flipped.

@Nephty
Copy link
Author

Nephty commented Feb 27, 2023

Temporary workaround :

grim /tmp/lockscreenshot.png
swaylock -i /tmp/lockscreenshot.png --effect-blur 5x3

@atagen
Copy link

atagen commented Mar 19, 2023

you may need to add swaylock to pam.
try echo auth include login | sudo tee /etc/pam.d/swaylock

@jirutka jirutka added the E-hyprland This issue is related to Hyprland compositor. label Dec 2, 2023
@jirutka
Copy link
Owner

jirutka commented Dec 2, 2023

This is probably some Hyprland bug because it’s not happening on Sway 1.7–1.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-hyprland This issue is related to Hyprland compositor.
Projects
None yet
Development

No branches or pull requests

3 participants