Skip to content

Commit

Permalink
#2203 assigning window to scratchpad using rules would incorrectly hi…
Browse files Browse the repository at this point in the history
…de the window
  • Loading branch information
koekeishiya committed Apr 6, 2024
1 parent 618127f commit 0bfaa2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Assigning a window to scratchpad using rules would incorrectly hide that window immediately [#2203](https://github.com/koekeishiya/yabai/issues/2203)

## [7.1.0] - 2024-04-04
### Added
Expand Down
4 changes: 1 addition & 3 deletions src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ void window_manager_apply_rule_effects_to_window(struct space_manager *sm, struc

if (effects->scratchpad) {
char *scratchpad = string_copy(effects->scratchpad);
if (window_manager_set_scratchpad_for_window(wm, window, scratchpad)) {
window_manager_toggle_scratchpad_window(wm, window, 1);
} else {
if (!window_manager_set_scratchpad_for_window(wm, window, scratchpad)) {
free(scratchpad);
}
}
Expand Down

0 comments on commit 0bfaa2d

Please sign in to comment.