tests: Respond to post-initial configures

This commit is contained in:
Ivan Molodetskikh
2024-12-29 11:12:43 +03:00
parent be05b66ac3
commit d6da9f47d8
17 changed files with 34 additions and 0 deletions
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
@@ -12,3 +12,4 @@ size: 936 × 1048, bounds: 1888 × 1048, states: []
post-map configures:
size: 0 × 0, bounds: 1920 × 1080, states: []
size: 1 × 1, bounds: 1920 × 1080, states: []
+18
View File
@@ -334,9 +334,18 @@ window-rule {{
let window = client.window(&surface);
window.attach_new_buffer();
let serial = window.configures_received.last().unwrap().0;
window.ack_last_and_commit();
f.double_roundtrip(id);
// Commit to the post-intial configures.
let window = f.client(id).window(&surface);
let new_serial = window.configures_received.last().unwrap().0;
if new_serial != serial {
window.ack_last_and_commit();
f.double_roundtrip(id);
}
let niri = f.niri();
let (mon, ws_idx, ws) = niri
.layout
@@ -548,9 +557,18 @@ window-rule {
let window = client.window(&surface);
window.attach_new_buffer();
let serial = window.configures_received.last().unwrap().0;
window.ack_last_and_commit();
f.double_roundtrip(id);
// Commit to the post-intial configures.
let window = f.client(id).window(&surface);
let new_serial = window.configures_received.last().unwrap().0;
if new_serial != serial {
window.ack_last_and_commit();
f.double_roundtrip(id);
}
let window = f.client(id).window(&surface);
let snapshot = format!(
"\