Skip to content

Only have window shadows with picom when windows are floating? #2944

Answered by m-col
alkostuchkov asked this question in Q&A
Discussion options

You must be logged in to vote

Your best bet is to set a similar window hint yourself using a hook, and then tell picom to watch out for that. For example:

from libqtile import qtile, hook

@hook.subscribe.float_change
@hook.subscribe.client_new
def set_hint(window):
    window.window.set_property("IS_FLOATING", int(window.floating))

This will set the hint IS_FLOATING on all managed windows (those menu-like windows like rofi and dmenu are not managed by qtile) that will be 1 if the window is floating or 0 if not.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alkostuchkov
Comment options

@m-col
Comment options

@alkostuchkov
Comment options

@m-col
Comment options

Answer selected by alkostuchkov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants