Commit Graph

13 Commits

Author SHA1 Message Date
Amr Bashir 70d99086de fix(window-state): restore window position if the one of the window corners intersects with monitor (#898)
* fix(window-state): restore window positions that matches monitor positions
closes #892

* check for intersections of any window corner instead of only top-left
2024-01-25 01:48:46 +02:00
Amr Bashir 417c85a2dd fix(window-state): manual default implentation (#425)
* fix(window-state): manual default implentation, closes #421

* Update lib.rs
2023-06-13 15:48:10 +03:00
Fabian-Lars 523bcdc528 fix(window-state): correctly set decoration state if no saved state exists, fixes #421 (#424) 2023-06-07 15:19:29 +03:00
Amr Bashir e5b07f4af2 feat(window-state): add js api, closes #254 (#309)
* feat(window-state): add js api, closes #254

* symlink tsconfig.json

* update symlink

* Update plugins/window-state/package.json

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>

* Update Cargo.toml

* move to cmd.rs

* Update plugins/window-state/guest-js/index.ts

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
2023-04-17 17:31:36 +02:00
renovate[bot] 58defafd2a fix(deps): update rust crate bitflags to v2 (#277)
* fix(deps): update rust crate bitflags to v2

* derive clone and copy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
2023-03-13 13:08:11 +01:00
Parker McMullin b49d8addda fix(window-state): Use outer position (#276) 2023-03-10 22:35:09 +02:00
Amr Bashir 4c6255d34f fix(window-state): update state before saving (#111)
* fix(windows-state): update state before saving

regression introduced in #104

* update readme

* don't panic on non-existing windows

* Restore Cargo.lock
2023-01-25 18:09:14 +01:00
amrbashir b02c7e15f9 clippy lints 2023-01-23 22:33:29 +02:00
amrbashir 1930a1aa84 cleanup & defer saving state until ClosedRequest 2023-01-23 22:24:36 +02:00
amrbashir 0abe028e88 clippy 2023-01-23 19:48:36 +02:00
amrbashir 47e85ad06d feat(window-state): add flags to control what is saved/restored 2023-01-23 19:46:54 +02:00
Uriel 827bd47db6 fix(window-state): compare position with available monitors bounds (#48)
* remember monitor data

* check only if the position exists

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
2023-01-09 14:33:53 +02:00
Jonas Kruckenberg eb3495fb72 copy plugin sources 2022-12-14 18:43:39 +01:00