2020-04-02 14:20:34 +00:00
|
|
|
# Check that X11 clients restore to their right size after unmaximize
|
2020-04-02 17:09:44 +00:00
|
|
|
# or untile
|
2020-04-02 14:20:34 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-04-02 17:09:44 +00:00
|
|
|
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
|
|
|
|
|
2020-04-02 14:20:34 +00:00
|
|
|
# Check that Wayland clients restore to their right size after unmaximize
|
2020-04-02 17:09:44 +00:00
|
|
|
# or untile
|
2020-04-02 14:20:34 +00:00
|
|
|
|
|
|
|
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
|
2020-04-02 17:09:44 +00:00
|
|
|
|
|
|
|
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
|