0f1ab032a74749d799742c9250f42c19864c8103
- Author
- chrisruff <chrisruff@live.ca>
- Committer
- chrisruff <chrisruff@live.ca>
- Date
Message
fix occasional crash when full screen
Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index 737c6e9f13b4ac0e6a3f50595fa35d5ffe709f77..90d69691befd5cf352cfcb5c6c610db9f0ca7bf8 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -945,8 +945,10 @@ std::optional<Hy3Node*> Hy3Layout::focusMonitor(ShiftDirection direction) {
6
7 // Move the cursor to the window we selected
8 auto found_node = getNodeFromWindow(target_window);
9- found_node->focus(true);
10- return found_node;
11+ if (found_node) {
12+ found_node->focus(true);
13+ return found_node;
14+ }
15 }
16 }
17 if (!found) {