feat: keep OSD always visible with pre-map fullscreen states (#3)
This commit is contained in:
@@ -310,6 +310,21 @@ func TestStackReassertTargetOnlyAboveLiveTrackedVideo(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestFullscreenStateAtomsOrderByRole(t *testing.T) {
|
||||
// Fullscreen is requested as a pre-map _NET_WM_STATE property so a
|
||||
// compliant window manager maps each layer genuinely fullscreen and
|
||||
// undecorated from its first frame; a post-map client message alone
|
||||
// leaves a decorated, repositioned window on the screen at startup.
|
||||
below := fullscreenStateAtoms(RoleBelow)
|
||||
if len(below) != 2 || below[0] != "_NET_WM_STATE_FULLSCREEN" || below[1] != "_NET_WM_STATE_BELOW" {
|
||||
t.Fatalf("canvas state atoms=%v want fullscreen below", below)
|
||||
}
|
||||
above := fullscreenStateAtoms(RoleAbove)
|
||||
if len(above) != 2 || above[0] != "_NET_WM_STATE_FULLSCREEN" || above[1] != "_NET_WM_STATE_ABOVE" {
|
||||
t.Fatalf("OSD state atoms=%v want fullscreen above", above)
|
||||
}
|
||||
}
|
||||
|
||||
func TestTransparentShapesEmptyInputAndOutput(t *testing.T) {
|
||||
var input, output bool
|
||||
for _, kind := range transparentShapeKinds() {
|
||||
|
||||
Reference in New Issue
Block a user