Created
September 27, 2023 04:22
-
-
Save ortango/bc6a8027ca09a9ae9deb65ed166be282 to your computer and use it in GitHub Desktop.
swap issue patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN a/tree.c b/tree.c | |
--- a/tree.c 2023-09-26 21:58:43.198473423 -0400 | |
+++ b/tree.c 2023-09-27 00:19:54.119856575 -0400 | |
@@ -1537,11 +1537,11 @@ | |
} | |
if (n1_held_focus) { | |
- d1->focus = n2_held_focus ? last_d2_focus : n2; | |
+ d1->focus = n2_held_focus ? last_d2_focus : (!IS_RECEPTACLE(n2) ? n2 : NULL); | |
} | |
if (n2_held_focus) { | |
- d2->focus = n1_held_focus ? last_d1_focus : n1; | |
+ d2->focus = n1_held_focus ? last_d1_focus : (!IS_RECEPTACLE(n1) ? n1 : NULL); | |
} | |
if (m1 != m2) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment