changed window fullscreen data type to keep compatibility with hyprland v0.42.0 and greater
This commit is contained in:
parent
f7662457a9
commit
3503da411f
@ -18,8 +18,8 @@ type Window struct {
|
||||
PID int `json:"pid"`
|
||||
Xwayland bool `json:"xwayland"`
|
||||
Pinned bool `json:"pinned"`
|
||||
Fullscreen bool `json:"fullscreen"`
|
||||
FullscreenMode int `json:"fullscreenMode"`
|
||||
Fullscreen FullscreenState `json:"fullscreen"`
|
||||
FullscreenClient FullscreenState `json:"fullscreenClient"`
|
||||
FakeFullscreen bool `json:"fakeFullscreen"`
|
||||
Grouped []interface{} `json:"grouped"` // TODO
|
||||
Swallowing string `json:"swallowing"`
|
||||
@ -30,3 +30,13 @@ func (w Window) String() string {
|
||||
data, _ := json.MarshalIndent(w, "", "\t")
|
||||
return string(data)
|
||||
}
|
||||
|
||||
type FullscreenState int
|
||||
|
||||
const (
|
||||
FullscreenCurrent FullscreenState = -1
|
||||
FullscreenNone FullscreenState = 0
|
||||
FullscreenMaximize FullscreenState = 1
|
||||
FullscreenFullscreen FullscreenState = 2
|
||||
FullscreenMaximizeFullscreen FullscreenState = 3
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user