summaryrefslogtreecommitdiff
path: root/src/tests/stacking/restore-size.metatest
blob: 58941b017fd40ea23864771fedd5236ae6b461dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Check that X11 clients restore to their right size after unmaximize
# or untile

new_client x x11
create x/1 csd

resize x/1 500 400
maximize x/1
show x/1

wait

assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT

unmaximize x/1
wait

assert_size x/1 500 400

resize x/1 300 200
wait
maximize x/1
wait_reconfigure
unmaximize x/1
wait_reconfigure

assert_size x/1 300 200

tile x/1 right
wait_reconfigure
assert_size x/1 MONITOR_WIDTH/2 MONITOR_HEIGHT

untile x/1
wait_reconfigure
assert_size x/1 300 200

tile x/1 left
wait_reconfigure
assert_size x/1 MONITOR_WIDTH/2 MONITOR_HEIGHT

maximize x/1
wait_reconfigure
assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT

unmaximize x/1
wait_reconfigure
assert_size x/1 300 200

# Check that Wayland clients restore to their right size after unmaximize
# or untile

new_client w wayland
create w/1 csd

resize w/1 150 300
maximize w/1
show w/1

wait

assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT

unmaximize w/1
wait_reconfigure

assert_size w/1 150 300

resize w/1 300 200
wait
maximize w/1
wait_reconfigure
unmaximize w/1
wait_reconfigure

assert_size w/1 300 200

tile w/1 right
wait_reconfigure
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT

untile w/1
wait_reconfigure
assert_size w/1 300 200

tile w/1 left
wait_reconfigure
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT

maximize w/1
wait_reconfigure
assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT

unmaximize w/1
wait_reconfigure
assert_size w/1 300 200