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

wlogout creates a blank secondary fullscreen window that blocks the screen (hyprland) #70

Open
LazyWings opened this issue Nov 8, 2024 · 0 comments

Comments

@LazyWings
Copy link

LazyWings commented Nov 8, 2024

I'm using hyprland and running wlogout creates two windows. One is the actual wlogout, the other is a fullscreen blocker that looks like it's designed to obscure the screen on use. The issue is that this second screen is on top.

I have tried correcting this with window rules in hyprland but that doesn't work because the class and title for both windows are identical. Here's the parse from hyprctl clients to demonstrate:

Window 565141acef20 -> wlogout:
mapped: 1
hidden: 0
at: 1927,742
size: 626,691
workspace: 1 (1)
floating: 0
pseudo: 0
monitor: 0
class: wlogout
title: wlogout
initialClass: wlogout
initialTitle: wlogout
pid: 171242
xwayland: 0
pinned: 0
fullscreen: 0
fullscreenClient: 0
grouped: 0
tags:
swallowing: 0
focusHistoryID: 2

Window 5651417f1ee0 -> wlogout:
mapped: 1
hidden: 0
at: 0,0
size: 2560,1440
workspace: 1 (1)
floating: 0
pseudo: 0
monitor: 0
class: wlogout
title: wlogout
initialClass: wlogout
initialTitle: wlogout
pid: 171242
xwayland: 0
pinned: 0
fullscreen: 2
fullscreenClient: 2
grouped: 0
tags:
swallowing: 0
focusHistoryID: 1

See the second window at size 2560x1440 which is forced to be fullscreen that has the same class and title which means that I cannot apply window rules to one over the other. I can't seem to find any settings for this secondary window in the config files for wlogout. I'm more than happy to just kill it entirely too since it seems unnecessary to me and I can just manually configure the main window.

The secondary window behaves as if it is the outer area of the window, so clicking it just closes wlogout. However I can kill the window using hyprctl killactive which I have bound. This reveals my desktop with the wlogout window, which does follow the window rules that I set for it. The only issue is the blank background window getting in the way.

I may be missing something obvious here, but grateful for some advice.

Thanks!

Edit:
I've managed to force both windows to launch with fullscreen off using windowrulev2 = fullscreenstate 0, class:^(wlogout)$ but that doesn't solve the actual problem. Is there even any need for the second window, especially since it seems to follow the styling defined in window {} in the style.css. I suppose it matters for window positioning but I can't configure that window separately at all.

Edit 2:
I was missing something obvious. Running wlogout -n prevents the second window. So the second window is intended for my second monitor. The issue is that it's loading only one of the windows in fullscreen and loading both on the active monitor. I can fiddle around, it might be the hyprland window rules causing this behaviour. Not sure whether to close this or not, since the window behaviour is odd generally. But I've found a solution and I can make it work for what I need it to do.

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

1 participant