Why is the OSK not rendered above Hyprlock

Hyprland version
Hyprland 0.50.1 built from branch  at commit 4e242d086e20b32951fdc0ebcbfb4d41b5be8dcc  ([gha] Nix: update inputs).
Date: Sat Jul 19 21:37:06 2025
Tag: v0.50.1, commits: 6291
built against:
 aquamarine 0.9.2
 hyprlang 0.6.3
 hyprutils 0.8.1
 hyprcursor 0.1.12
 hyprgraphics 0.1.5


no flags were set

Hi, I’m using a OSK when using tablet-mode and I would like to use my OSK to be rendered above Hyprlock so I can still unlock my session.
The wiki shows a appropriate layerrule named abovelock which I’ve tried to use with the osk layer of the layer overview from below.

Monitor eDP-1:
	Layer level 0 (background):
		Layer 5596af227020: xywh: 0 0 1920 1200, namespace: hyprpaper, pid: 1231
	Layer level 1 (bottom):
	Layer level 2 (top):
		Layer 5596b0572190: xywh: 10 30 60 1140, namespace: gtk-layer-shell, pid: 1278
		Layer 5596b096a990: xywh: 70 800 1850 400, namespace: osk, pid: 1251
	Layer level 3 (overlay):

But when using the following line layerrule = abovelock true, osk the OSK is still not above Hyprlock.
Is it possible that I’ve overlooked something?

sounds like a bug. Can you check 0.49.0?

Tested it on 0.49.0, same Issue

hm, odd. What if you move the osk to the overlay layer?

Unfortunately Squeekboard ( The OSK I’m using) doesn’t support overlay, it can only be pushed to the top. Also even if it would work the solution is not really good because the OSK shouldn’t overlay with other applications for obvious reasons.
I’ve tried to apply the layerrule to rofi or walker to see if your suggestion works and both are getting rendered above Hyprlock but vanish after getting clicked. Is it possible that this layerrule only applies to overlays? And if that is the case, is it possible to allow other layer-levels the same functionality?

looking at the code, it should work. However, since it’s an OSK, you might want to also make it interactable, maybe that’s why it disappears?

layerrule = abovelock true, osk

Have already tried it, should I simply try another OSK and see if the issue persists?

that would be a good thing to test.

Okay so I’ve found wvkbd which is in the overlay layer and works with Hyprlock consistently so I’ll stick to that.

Thanks for your help :D

2 Likes