hl.dsp.window.fullscreen_state is broken #14531
|
I observe a regression from 0.54 to 0.55 The following should put the window in tiled mode, while keeping the client's fullscreen state, but this is no longer respected. hl.dsp.window.fullscreen_state({
client=-1,
internal=0,
action="set"
})The issue is that A workaround is something like this hl.dsp.window.fullscreen_state({
client=hl.get_active_window().fullscreen_client,
internal=0,
action="set"
})As discussed on the discord channel, maybe the API of |
Replies: 3 comments 3 replies
|
It seems the internal argument in the dispatcher is also broken. This bind should leave the fullscreenstate unchanged but it fullscreens any non-fullscreen window |
|
I encountered a version of this as well, wheremy "toggle client fullscreen" bind turned into a "set client fullscreen" one. Solved it by using: hl.dsp.window.fullscreen_state({ action = "toggle", internal = 0, client = 2 })in my bind. This is indeed different from my original setup under Hyprlang, which used -1 instead of 0. Something to consider: having a "toggle" action and a -1 "keep previous value" flag is a little weird. It feels like there should be a better way to format this, but I'm not sure precisely what that'd be. |
|
Hey! While we are at fixing the fullscreen state bugs, I also suggest to rethink the fullscreen state logic a bit. Please, take a look at #14646 and share your thoughts: whether the proposed behavior makes sense or if you'd expect something else. |
Hey! While we are at fixing the fullscreen state bugs, I also suggest to rethink the fullscreen state logic a bit. Please, take a look at #14646 and share your thoughts: whether the proposed behavior makes sense or if you'd expect something else.