Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
ammgws authored Feb 7, 2021
1 parent 5535bb2 commit d5b66b6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ fn main() -> Result<(), std::io::Error> {
match event.unwrap() {
Event::Window(e) => {
if let WindowChange::Focus = e.change {
//we can not use the e.container because the data is stale
//if we compare that node data with the node given from get_tree() after we
//delete a node we find that the e.container.rect.height and e.container.rect.width are stale
//and therefore we make the wrong decision on which layout our next window
//should be
// We can not use the e.container because the data is stale.
// If we compare that node data with the node given from get_tree() after we
// delete a node we find that the e.container.rect.height and e.container.rect.width are stale,
// and therefore we make the wrong decision on which layout our next window should be.
// Refer to https://github.com/swaywm/sway/issues/5873
if let Err(err) = switch_splitting(&mut conn, &workspaces) {
eprintln!("err: {}", err);
}
Expand Down

0 comments on commit d5b66b6

Please sign in to comment.