wf-shell icon indicating copy to clipboard operation
wf-shell copied to clipboard

How do you autohide it?

Open Secret-chest opened this issue 5 months ago • 3 comments

I hear Wayland has an unique protocol to implement autohide without the 1px "mouse sensor" line; could anyone please point me at the code that is used to do that?

Secret-chest avatar Jul 23 '25 14:07 Secret-chest

Not wayland itself, but wayfire, I assume that's what you meant :)

Are you interested in the compositor or the client implementation? In both cases you are looking for the wayfire-shell protocol.

ammen99 avatar Jul 23 '25 14:07 ammen99

I am looking for the client implementation. I know about gtk4-layer-shell but do not know how to set up autohide with it.

Secret-chest avatar Jul 25 '25 20:07 Secret-chest

I am looking for the client implementation. I know about gtk4-layer-shell but do not know how to set up autohide with it.

You're probably looking for this: https://github.com/WayfireWM/wf-shell/blob/master/src%2Futil%2Fwf-autohide-window.cpp#L195 The protocol itself is here: https://github.com/WayfireWM/wf-shell/blob/master/proto%2Fwayfire-shell-unstable-v2.xml#L74 The zwf_hotstop_v2_* functions are generated from the protocol declaration.

NamorNiradnug avatar Jul 26 '25 10:07 NamorNiradnug