mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
tests: Respond to post-initial configures
This commit is contained in:
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
+1
@@ -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: []
|
||||
|
||||
@@ -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!(
|
||||
"\
|
||||
|
||||
Reference in New Issue
Block a user