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"`
|
PID int `json:"pid"`
|
||||||
Xwayland bool `json:"xwayland"`
|
Xwayland bool `json:"xwayland"`
|
||||||
Pinned bool `json:"pinned"`
|
Pinned bool `json:"pinned"`
|
||||||
Fullscreen bool `json:"fullscreen"`
|
Fullscreen FullscreenState `json:"fullscreen"`
|
||||||
FullscreenMode int `json:"fullscreenMode"`
|
FullscreenClient FullscreenState `json:"fullscreenClient"`
|
||||||
FakeFullscreen bool `json:"fakeFullscreen"`
|
FakeFullscreen bool `json:"fakeFullscreen"`
|
||||||
Grouped []interface{} `json:"grouped"` // TODO
|
Grouped []interface{} `json:"grouped"` // TODO
|
||||||
Swallowing string `json:"swallowing"`
|
Swallowing string `json:"swallowing"`
|
||||||
@ -30,3 +30,13 @@ func (w Window) String() string {
|
|||||||
data, _ := json.MarshalIndent(w, "", "\t")
|
data, _ := json.MarshalIndent(w, "", "\t")
|
||||||
return string(data)
|
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