floating: Improve expected size requests to avoid (0, 0) and duplicates
Browse files at this commit309bf1348c67a81b99e7b3feef461584ca7cd423Parent: 76a5635142 changed files +380 -85
- src/layout/floating.rs +4 -12
- src/layout/mod.rs +16 -4
- src/tests/floating.rs +148 -4
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsB2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsB2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsBN-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB1-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB1-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBN-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBN-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spA1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spA2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spB1.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spB2.snap +1 -1
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB1-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB1-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBN-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBN-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB1-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB1-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBN-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBN-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB1-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB1-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBN-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBN-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsBU-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsAA-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsAA-spB2.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsBU-spB1.snap +1 -0
- src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsBU-spB2.snap +1 -0
- src/window/mapped.rs +74 -8
src/layout/floating.rsmodified+4 -12
| @@ -376,7 +376,7 @@ impl<W: LayoutElement> FloatingSpace<W> { | |||
| 376 | } else { | 376 | } else { |
| 377 | // If the window wasn't fullscreen without a floating size (e.g. it was tiled before), | 377 | // If the window wasn't fullscreen without a floating size (e.g. it was tiled before), |
| 378 | // ask for the current size. | 378 | // ask for the current size. |
| 379 | - floating_size.unwrap_or_else(|| win.size_to_request()) | 379 | + floating_size.unwrap_or_else(|| win.expected_size()) |
| 380 | }; | 380 | }; |
| 381 | // Make sure fixed-size through window rules keeps working. | 381 | // Make sure fixed-size through window rules keeps working. |
| 382 | let min_size = win.min_size(); | 382 | let min_size = win.min_size(); |
| @@ -597,11 +597,7 @@ impl<W: LayoutElement> FloatingSpace<W> { | |||
| 597 | win_width = ensure_min_max_size(win_width, min_size.w, max_size.w); | 597 | win_width = ensure_min_max_size(win_width, min_size.w, max_size.w); |
| 598 | win_width = max(1, win_width); | 598 | win_width = max(1, win_width); |
| 599 | 599 | ||
| 600 | - let mut win_height = win.size_to_request().h; | 600 | + let win_height = win.expected_size().h; |
| 601 | - // If we requested height = 0, then switch to the current height. | ||
| 602 | - if win_height == 0 { | ||
| 603 | - win_height = win.size().h; | ||
| 604 | - } | ||
| 605 | let win_height = ensure_min_max_size(win_height, min_size.h, max_size.h); | 601 | let win_height = ensure_min_max_size(win_height, min_size.h, max_size.h); |
| 606 | 602 | ||
| 607 | let win_size = Size::from((win_width, win_height)); | 603 | let win_size = Size::from((win_width, win_height)); |
| @@ -630,11 +626,7 @@ impl<W: LayoutElement> FloatingSpace<W> { | |||
| 630 | win_height = ensure_min_max_size(win_height, min_size.h, max_size.h); | 626 | win_height = ensure_min_max_size(win_height, min_size.h, max_size.h); |
| 631 | win_height = max(1, win_height); | 627 | win_height = max(1, win_height); |
| 632 | 628 | ||
| 633 | - let mut win_width = win.size_to_request().w; | 629 | + let win_width = win.expected_size().w; |
| 634 | - // If we requested width = 0, then switch to the current width. | ||
| 635 | - if win_width == 0 { | ||
| 636 | - win_width = win.size().w; | ||
| 637 | - } | ||
| 638 | let win_width = ensure_min_max_size(win_width, min_size.w, max_size.w); | 630 | let win_width = ensure_min_max_size(win_width, min_size.w, max_size.w); |
| 639 | 631 | ||
| 640 | let win_size = Size::from((win_width, win_height)); | 632 | let win_size = Size::from((win_width, win_height)); |
| @@ -771,7 +763,7 @@ impl<W: LayoutElement> FloatingSpace<W> { | |||
| 771 | data.update(tile); | 763 | data.update(tile); |
| 772 | 764 | ||
| 773 | // Update the stored floating window size. | 765 | // Update the stored floating window size. |
| 774 | - let floating_size = tile.window().size_to_request(); | 766 | + let floating_size = tile.window().expected_size(); |
| 775 | tile.set_floating_window_size(floating_size); | 767 | tile.set_floating_window_size(floating_size); |
| 776 | 768 | ||
| 777 | // When resizing by top/left edge, update the position accordingly. | 769 | // When resizing by top/left edge, update the position accordingly. |
src/layout/mod.rsmodified+16 -4
| @@ -197,15 +197,27 @@ pub trait LayoutElement { | |||
| 197 | /// Size previously requested through [`LayoutElement::request_size()`]. | 197 | /// Size previously requested through [`LayoutElement::request_size()`]. |
| 198 | fn requested_size(&self) -> Option<Size<i32, Logical>>; | 198 | fn requested_size(&self) -> Option<Size<i32, Logical>>; |
| 199 | 199 | ||
| 200 | - /// Size that we will request of this window. | 200 | + /// Size that we expect this window has or will shortly have. |
| 201 | /// | 201 | /// |
| 202 | /// This can be different from [`requested_size()`](LayoutElement::requested_size()). For | 202 | /// This can be different from [`requested_size()`](LayoutElement::requested_size()). For |
| 203 | /// example, for floating windows this will generally return the current window size, rather | 203 | /// example, for floating windows this will generally return the current window size, rather |
| 204 | /// than the last size that we requested, since we want floating windows to be able to change | 204 | /// than the last size that we requested, since we want floating windows to be able to change |
| 205 | /// size freely. But not always: if we just requested a floating window to resize and it hasn't | 205 | /// size freely. But not always: if we just requested a floating window to resize and it hasn't |
| 206 | /// responded to it yet, this will return the newly requested size. | 206 | /// responded to it yet, this will return the newly requested size. |
| 207 | - fn size_to_request(&self) -> Size<i32, Logical> { | 207 | + /// |
| 208 | - self.requested_size().unwrap_or_else(|| self.size()) | 208 | + /// This function should never return a 0 size component. |
| 209 | + /// | ||
| 210 | + /// The default impl is for testing only, it will not preserve the window's own size changes. | ||
| 211 | + fn expected_size(&self) -> Size<i32, Logical> { | ||
| 212 | + let mut requested = self.requested_size().unwrap_or_default(); | ||
| 213 | + let current = self.size(); | ||
| 214 | + if requested.w == 0 { | ||
| 215 | + requested.w = current.w; | ||
| 216 | + } | ||
| 217 | + if requested.h == 0 { | ||
| 218 | + requested.h = current.h; | ||
| 219 | + } | ||
| 220 | + requested | ||
| 209 | } | 221 | } |
| 210 | 222 | ||
| 211 | fn is_child_of(&self, parent: &Self) -> bool; | 223 | fn is_child_of(&self, parent: &Self) -> bool; |
| @@ -1155,7 +1167,7 @@ impl<W: LayoutElement> Layout<W> { | |||
| 1155 | 1167 | ||
| 1156 | // Update the floating size in case the window resizes itself during an interactive | 1168 | // Update the floating size in case the window resizes itself during an interactive |
| 1157 | // move. | 1169 | // move. |
| 1158 | - let floating_size = move_.tile.window().size_to_request(); | 1170 | + let floating_size = move_.tile.window().expected_size(); |
| 1159 | move_.tile.set_floating_window_size(floating_size); | 1171 | move_.tile.set_floating_window_size(floating_size); |
| 1160 | 1172 | ||
| 1161 | return; | 1173 | return; |
src/tests/floating.rsmodified+148 -4
| @@ -78,14 +78,18 @@ fn resize_to_different_size() { | |||
| 78 | let (mut f, id, surface) = set_up(); | 78 | let (mut f, id, surface) = set_up(); |
| 79 | let _ = f.client(id).window(&surface).recent_configures(); | 79 | let _ = f.client(id).window(&surface).recent_configures(); |
| 80 | 80 | ||
| 81 | + // Commit in response to the Activated state change configure. | ||
| 82 | + f.client(id).window(&surface).ack_last_and_commit(); | ||
| 83 | + f.double_roundtrip(id); | ||
| 84 | + | ||
| 81 | f.niri().layout.toggle_window_floating(None); | 85 | f.niri().layout.toggle_window_floating(None); |
| 82 | f.niri().layout.set_column_width(SizeChange::SetFixed(500)); | 86 | f.niri().layout.set_column_width(SizeChange::SetFixed(500)); |
| 83 | f.double_roundtrip(id); | 87 | f.double_roundtrip(id); |
| 84 | 88 | ||
| 85 | - // This should request the new size, 500 ×. | 89 | + // This should request the new size, 500 × 100. |
| 86 | assert_snapshot!( | 90 | assert_snapshot!( |
| 87 | f.client(id).window(&surface).format_recent_configures(), | 91 | f.client(id).window(&surface).format_recent_configures(), |
| 88 | - @"size: 500 × 1048, bounds: 1920 × 1080, states: [Activated]" | 92 | + @"size: 500 × 100, bounds: 1920 × 1080, states: [Activated]" |
| 89 | ); | 93 | ); |
| 90 | 94 | ||
| 91 | // Focus a different output which should drop the Activated state. | 95 | // Focus a different output which should drop the Activated state. |
| @@ -94,7 +98,7 @@ fn resize_to_different_size() { | |||
| 94 | // This should request the new size since the window hasn't committed yet. | 98 | // This should request the new size since the window hasn't committed yet. |
| 95 | assert_snapshot!( | 99 | assert_snapshot!( |
| 96 | f.client(id).window(&surface).format_recent_configures(), | 100 | f.client(id).window(&surface).format_recent_configures(), |
| 97 | - @"size: 500 × 1048, bounds: 1920 × 1080, states: []" | 101 | + @"size: 500 × 100, bounds: 1920 × 1080, states: []" |
| 98 | ); | 102 | ); |
| 99 | 103 | ||
| 100 | // Ack but don't commit yet. | 104 | // Ack but don't commit yet. |
| @@ -107,7 +111,7 @@ fn resize_to_different_size() { | |||
| 107 | // This should request the new size since the window hasn't committed yet. | 111 | // This should request the new size since the window hasn't committed yet. |
| 108 | assert_snapshot!( | 112 | assert_snapshot!( |
| 109 | f.client(id).window(&surface).format_recent_configures(), | 113 | f.client(id).window(&surface).format_recent_configures(), |
| 110 | - @"size: 500 × 1048, bounds: 1920 × 1080, states: [Activated]" | 114 | + @"size: 500 × 100, bounds: 1920 × 1080, states: [Activated]" |
| 111 | ); | 115 | ); |
| 112 | 116 | ||
| 113 | // Commit but with some different size. | 117 | // Commit but with some different size. |
| @@ -507,3 +511,143 @@ fn resize_during_interactive_move_propagates_to_floating() { | |||
| 507 | @"size: 300 × 300, bounds: 1920 × 1080, states: [Activated]" | 511 | @"size: 300 × 300, bounds: 1920 × 1080, states: [Activated]" |
| 508 | ); | 512 | ); |
| 509 | } | 513 | } |
| 514 | + | ||
| 515 | +#[test] | ||
| 516 | +fn resize_in_steps() { | ||
| 517 | + let (mut f, id, surface) = set_up(); | ||
| 518 | + | ||
| 519 | + f.niri().layout.toggle_window_floating(None); | ||
| 520 | + f.double_roundtrip(id); | ||
| 521 | + let _ = f.client(id).window(&surface).recent_configures(); | ||
| 522 | + | ||
| 523 | + // Commit in response to the floating bounds state change configure. | ||
| 524 | + f.client(id).window(&surface).ack_last_and_commit(); | ||
| 525 | + f.double_roundtrip(id); | ||
| 526 | + | ||
| 527 | + // Request a size change to a different size in two steps. | ||
| 528 | + f.niri().layout.set_column_width(SizeChange::SetFixed(500)); | ||
| 529 | + f.niri() | ||
| 530 | + .layout | ||
| 531 | + .set_window_height(None, SizeChange::SetFixed(500)); | ||
| 532 | + f.double_roundtrip(id); | ||
| 533 | + | ||
| 534 | + // This should request the full new size (500 × 500) once. | ||
| 535 | + assert_snapshot!( | ||
| 536 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 537 | + @"size: 500 × 500, bounds: 1920 × 1080, states: [Activated]" | ||
| 538 | + ); | ||
| 539 | + | ||
| 540 | + let window = f.client(id).window(&surface); | ||
| 541 | + let serial = window.configures_received.last().unwrap().0; | ||
| 542 | + | ||
| 543 | + // Request a size change now that the previous one is pending-but-not-acked. | ||
| 544 | + f.niri().layout.set_column_width(SizeChange::SetFixed(600)); | ||
| 545 | + // Drop Activated to work around resize throttling. | ||
| 546 | + f.niri_focus_output(2); | ||
| 547 | + f.double_roundtrip(id); | ||
| 548 | + | ||
| 549 | + // This should request the new size (600 × 500) once. | ||
| 550 | + assert_snapshot!( | ||
| 551 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 552 | + @"size: 600 × 500, bounds: 1920 × 1080, states: []" | ||
| 553 | + ); | ||
| 554 | + | ||
| 555 | + // Commit in response to the previous configure. | ||
| 556 | + let window = f.client(id).window(&surface); | ||
| 557 | + window.xdg_surface.ack_configure(serial); | ||
| 558 | + window.set_size(500, 500); | ||
| 559 | + window.commit(); | ||
| 560 | + | ||
| 561 | + f.double_roundtrip(id); | ||
| 562 | + | ||
| 563 | + // This shouldn't request anything. | ||
| 564 | + assert_snapshot!( | ||
| 565 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 566 | + @"" | ||
| 567 | + ); | ||
| 568 | + | ||
| 569 | + // Request a height change now that the first one is committed-to, but the second isn't. | ||
| 570 | + let niri = f.niri(); | ||
| 571 | + let mapped = niri.layout.windows().next().unwrap().1; | ||
| 572 | + let window = mapped.window.clone(); | ||
| 573 | + f.niri() | ||
| 574 | + .layout | ||
| 575 | + .set_window_height(Some(&window), SizeChange::SetFixed(600)); | ||
| 576 | + // Add Activated to work around resize throttling. | ||
| 577 | + f.niri_focus_output(1); | ||
| 578 | + f.double_roundtrip(id); | ||
| 579 | + | ||
| 580 | + // This should request the latest sizes (600 × 600). | ||
| 581 | + assert_snapshot!( | ||
| 582 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 583 | + @"size: 600 × 600, bounds: 1920 × 1080, states: [Activated]" | ||
| 584 | + ); | ||
| 585 | +} | ||
| 586 | + | ||
| 587 | +#[test] | ||
| 588 | +fn state_change_doesnt_break_use_window_size() { | ||
| 589 | + let (mut f, id, surface) = set_up(); | ||
| 590 | + | ||
| 591 | + f.niri().layout.toggle_window_floating(None); | ||
| 592 | + f.double_roundtrip(id); | ||
| 593 | + let _ = f.client(id).window(&surface).recent_configures(); | ||
| 594 | + | ||
| 595 | + // Commit in response to the bounds change that comes with toggling floating. | ||
| 596 | + f.client(id).window(&surface).ack_last_and_commit(); | ||
| 597 | + f.roundtrip(id); | ||
| 598 | + | ||
| 599 | + // Request a size change to a different size. | ||
| 600 | + f.niri().layout.set_column_width(SizeChange::SetFixed(500)); | ||
| 601 | + f.double_roundtrip(id); | ||
| 602 | + | ||
| 603 | + // This should request the new size (500 × 100). | ||
| 604 | + assert_snapshot!( | ||
| 605 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 606 | + @"size: 500 × 100, bounds: 1920 × 1080, states: [Activated]" | ||
| 607 | + ); | ||
| 608 | + | ||
| 609 | + let window = f.client(id).window(&surface); | ||
| 610 | + let serial = window.configures_received.last().unwrap().0; | ||
| 611 | + | ||
| 612 | + // Request a state change by dropping Activated. | ||
| 613 | + f.niri_focus_output(2); | ||
| 614 | + f.double_roundtrip(id); | ||
| 615 | + | ||
| 616 | + // This should request the new size (500 × 100). | ||
| 617 | + assert_snapshot!( | ||
| 618 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 619 | + @"size: 500 × 100, bounds: 1920 × 1080, states: []" | ||
| 620 | + ); | ||
| 621 | + | ||
| 622 | + // Commit in response to the previous configure with a different size. | ||
| 623 | + let window = f.client(id).window(&surface); | ||
| 624 | + window.xdg_surface.ack_configure(serial); | ||
| 625 | + window.set_size(300, 300); | ||
| 626 | + window.commit(); | ||
| 627 | + | ||
| 628 | + f.double_roundtrip(id); | ||
| 629 | + | ||
| 630 | + // This shouldn't request anything. | ||
| 631 | + assert_snapshot!( | ||
| 632 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 633 | + @"" | ||
| 634 | + ); | ||
| 635 | + | ||
| 636 | + // Request a height change now that the first one is committed-to, but the second isn't. | ||
| 637 | + let niri = f.niri(); | ||
| 638 | + let mapped = niri.layout.windows().next().unwrap().1; | ||
| 639 | + let window = mapped.window.clone(); | ||
| 640 | + f.niri() | ||
| 641 | + .layout | ||
| 642 | + .set_window_height(Some(&window), SizeChange::SetFixed(600)); | ||
| 643 | + // Add Activated state to force a configure. | ||
| 644 | + f.niri_focus_output(1); | ||
| 645 | + f.double_roundtrip(id); | ||
| 646 | + | ||
| 647 | + // This should already request the current width (300 × 600) rather than the pending previous | ||
| 648 | + // width (500 × 600) from the state change configure. | ||
| 649 | + assert_snapshot!( | ||
| 650 | + f.client(id).window(&surface).format_recent_configures(), | ||
| 651 | + @"size: 300 × 600, bounds: 1920 × 1080, states: [Activated]" | ||
| 652 | + ); | ||
| 653 | +} | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsB2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsB2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsBN-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsF-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@fsT-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsF-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-fsT-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out1-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB1-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB1-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsB2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBN-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBN-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-fsF-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@out2-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsF-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-fsT-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsF-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-fsT-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out1-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsF-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1248 × 688, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-fsT-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 1280 × 720, bounds: 1280 × 720, states: [Fullscreen] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-out2-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spA1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spA2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 616 × 688, bounds: 1248 × 688, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spB1.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws1-wfsAA-spB2.snapmodified+1 -1
| @@ -12,4 +12,4 @@ size: 0 × 0, bounds: 1280 × 720, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1280 × 720, states: [] | 14 | size: 0 × 0, bounds: 1280 × 720, states: [] |
| 15 | -size: 0 × 0, bounds: 1280 × 720, states: [Activated] | 15 | +size: 1 × 1, bounds: 1280 × 720, states: [Activated] |
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB1-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB1-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsB2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBN-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBN-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-fsF-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB1-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB1-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsB2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBN-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBN-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-fsF-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out1-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB1-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB1-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsB2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBN-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBN-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-fsF-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-out2-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsAA-spB1.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsAA-spB2.snapmodified+1 -0
| @@ -12,3 +12,4 @@ size: 0 × 0, bounds: 1920 × 1080, states: [] | |||
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 14 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 15 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsBU-spB1.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/tests/snapshots/niri__tests__window_opening__check_target_output_and_workspace@ws2-wfsBU-spB2.snapmodified+1 -0
| @@ -11,3 +11,4 @@ initial configure: | |||
| 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] | 11 | size: 0 × 0, bounds: 1920 × 1080, states: [] |
| 12 | 12 | ||
| 13 | post-map configures: | 13 | post-map configures: |
| 14 | +size: 1 × 1, bounds: 1920 × 1080, states: [] | ||
src/window/mapped.rsmodified+74 -8
| @@ -750,7 +750,27 @@ impl LayoutElement for Mapped { | |||
| 750 | let _span = | 750 | let _span = |
| 751 | trace_span!("send_pending_configure", surface = ?toplevel.wl_surface().id()).entered(); | 751 | trace_span!("send_pending_configure", surface = ?toplevel.wl_surface().id()).entered(); |
| 752 | 752 | ||
| 753 | - if toplevel.has_pending_changes() { | 753 | + // Check for pending changes manually to account fo RequestSizeOnce::UseWindowSize. |
| 754 | + let has_pending_changes = with_toplevel_role(self.toplevel(), |role| { | ||
| 755 | + if role.server_pending.is_none() { | ||
| 756 | + return false; | ||
| 757 | + } | ||
| 758 | + | ||
| 759 | + let current_server_size = role.current_server_state().size; | ||
| 760 | + let server_pending = role.server_pending.as_mut().unwrap(); | ||
| 761 | + | ||
| 762 | + // With UseWindowSize, we do not consider size-only changes, because we will | ||
| 763 | + // request the current window size and do not expect it to actually change. | ||
| 764 | + if let Some(RequestSizeOnce::UseWindowSize) = self.request_size_once { | ||
| 765 | + server_pending.size = current_server_size; | ||
| 766 | + } | ||
| 767 | + | ||
| 768 | + let server_pending = role.server_pending.as_ref().unwrap(); | ||
| 769 | + server_pending != role.current_server_state() | ||
| 770 | + }); | ||
| 771 | + | ||
| 772 | + if has_pending_changes { | ||
| 773 | + // If needed, replace the pending size with the current window size. | ||
| 754 | if let Some(RequestSizeOnce::UseWindowSize) = self.request_size_once { | 774 | if let Some(RequestSizeOnce::UseWindowSize) = self.request_size_once { |
| 755 | let size = self.window.geometry().size; | 775 | let size = self.window.geometry().size; |
| 756 | toplevel.with_pending_state(|state| { | 776 | toplevel.with_pending_state(|state| { |
| @@ -809,19 +829,65 @@ impl LayoutElement for Mapped { | |||
| 809 | self.toplevel().with_pending_state(|state| state.size) | 829 | self.toplevel().with_pending_state(|state| state.size) |
| 810 | } | 830 | } |
| 811 | 831 | ||
| 812 | - fn size_to_request(&self) -> Size<i32, Logical> { | 832 | + fn expected_size(&self) -> Size<i32, Logical> { |
| 813 | let current_size = self.window.geometry().size; | 833 | let current_size = self.window.geometry().size; |
| 814 | 834 | ||
| 835 | + // Check if we should be using the current window size. | ||
| 836 | + // | ||
| 837 | + // This branch can be useful (give different result than the logic below) in this example | ||
| 838 | + // case: | ||
| 839 | + // | ||
| 840 | + // 1. We request_size_once a size change. | ||
| 841 | + // 2. We send a second configure requesting a state change. | ||
| 842 | + // 3. The window acks and commits-to the first configure but not the second, with a | ||
| 843 | + // different size. | ||
| 844 | + // | ||
| 845 | + // In this case self.request_size_once will already flip to UseWindowSize and this branch | ||
| 846 | + // will return the window's own new size, but the logic below would see an uncommitted size | ||
| 847 | + // change and return our size. | ||
| 815 | if let Some(RequestSizeOnce::UseWindowSize) = self.request_size_once { | 848 | if let Some(RequestSizeOnce::UseWindowSize) = self.request_size_once { |
| 816 | return current_size; | 849 | return current_size; |
| 817 | } | 850 | } |
| 818 | 851 | ||
| 819 | - // FIXME: Ideally, if the window doesn't have a pending resize or an uncommitted acked | 852 | + let pending_size = with_toplevel_role(self.toplevel(), |role| { |
| 820 | - // size, we should request the current window size, rather than the requested size. This | 853 | + // If we have a server-pending size change that we haven't sent yet, use that size. |
| 821 | - // will keep the window size as-is when moving to floating in the case that a window | 854 | + if let Some(server_pending) = &role.server_pending { |
| 822 | - // changed its size in the tiling layout and then we requested a resize. However, that's | 855 | + let current_server = role.current_server_state(); |
| 823 | - // pretty edge-casy and I don't want to complicate this logic for that at the moment. | 856 | + if server_pending.size != current_server.size { |
| 824 | - self.requested_size().unwrap_or(current_size) | 857 | + return Some(server_pending.size.unwrap_or_default()); |
| 858 | + } | ||
| 859 | + } | ||
| 860 | + | ||
| 861 | + // If we have a sent-but-not-committed-to size, use that. | ||
| 862 | + let (last_sent, last_serial) = if let Some(configure) = role.pending_configures().last() | ||
| 863 | + { | ||
| 864 | + (&configure.state, configure.serial) | ||
| 865 | + } else { | ||
| 866 | + ( | ||
| 867 | + role.last_acked.as_ref().unwrap(), | ||
| 868 | + role.configure_serial.unwrap(), | ||
| 869 | + ) | ||
| 870 | + }; | ||
| 871 | + | ||
| 872 | + if let Some(current_serial) = role.current_serial { | ||
| 873 | + if !current_serial.is_no_older_than(&last_serial) { | ||
| 874 | + return Some(last_sent.size.unwrap_or_default()); | ||
| 875 | + } | ||
| 876 | + } | ||
| 877 | + | ||
| 878 | + None | ||
| 879 | + }); | ||
| 880 | + | ||
| 881 | + // If we have no pending size change (size change that the window hasn't committed to), or | ||
| 882 | + // if some component of the pending size change is zero, use the current window size. | ||
| 883 | + let mut size = pending_size.unwrap_or_default(); | ||
| 884 | + if size.w == 0 { | ||
| 885 | + size.w = current_size.w; | ||
| 886 | + } | ||
| 887 | + if size.h == 0 { | ||
| 888 | + size.h = current_size.h; | ||
| 889 | + } | ||
| 890 | + size | ||
| 825 | } | 891 | } |
| 826 | 892 | ||
| 827 | fn is_child_of(&self, parent: &Self) -> bool { | 893 | fn is_child_of(&self, parent: &Self) -> bool { |