wlogout icon indicating copy to clipboard operation
wlogout copied to clipboard

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

Open LazyWings opened this issue 1 year ago • 2 comments

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.

LazyWings avatar Nov 08 '24 16:11 LazyWings

I'm also on Hyprland.

If I'm just on my laptop it works fine/ as expected.

If I have a second external monitor plugged into my laptop, when I click wlogout a black overlay takes over the screen and the 6 icon/options go missing or are not visible. I can click on the screen and it gets rid of the black overlay.

So similar issue for me, but having more than one monitor is what seems to cause the issue for me.

Fine with just laptop. Borked when external monitor plugged in.

rousty88 avatar Nov 25 '24 17:11 rousty88

I'm also on Hyprland.

If I'm just on my laptop it works fine/ as expected.

If I have a second external monitor plugged into my laptop, when I click wlogout a black overlay takes over the screen and the 6 icon/options go missing or are not visible. I can click on the screen and it gets rid of the black overlay.

So similar issue for me, but having more than one monitor is what seems to cause the issue for me.

Fine with just laptop. Borked when external monitor plugged in.

found any solution?

fyiimysf avatar Nov 12 '25 09:11 fyiimysf