diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-14 15:00:11 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-14 15:35:43 +0400 |
| commit | 5f402210510aff0051abd080d664581c26e77c2b (patch) | |
| tree | f75918a6a30295b4f571846d09cc12ee75397f12 /src/handlers | |
| parent | b14405904a8309fdcebc938f59584832ffe27fd6 (diff) | |
| download | niri-5f402210510aff0051abd080d664581c26e77c2b.tar.gz niri-5f402210510aff0051abd080d664581c26e77c2b.tar.bz2 niri-5f402210510aff0051abd080d664581c26e77c2b.zip | |
Refactor column and tile offsets, fix a few issues
Diffstat (limited to 'src/handlers')
| -rw-r--r-- | src/handlers/xdg_shell.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs index 1b8194aa..44f07839 100644 --- a/src/handlers/xdg_shell.rs +++ b/src/handlers/xdg_shell.rs @@ -759,7 +759,7 @@ impl State { // height. let mut target = Rectangle::from_loc_and_size((0, 0), (window_geo.size.w, output_geo.size.h)); - target.loc.y -= self.niri.layout.window_y(window).unwrap(); + target.loc -= self.niri.layout.window_loc(window).unwrap(); target.loc -= get_popup_toplevel_coords(popup); self.position_popup_within_rect(popup, target); @@ -953,8 +953,6 @@ pub fn add_mapped_toplevel_pre_commit_hook(toplevel: &ToplevelSurface) -> HookId state.backend.with_primary_renderer(|renderer| { mapped.store_animation_snapshot(renderer); }); - - state.niri.layout.prepare_for_resize_animation(&window); } // The toplevel remains mapped; clear any stored unmap snapshot. |
