diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-28 17:48:38 +0300 |
commit | 87b5dbd9c0393e787d2499d796486d3293f17214 (patch) | |
tree | 556f0b6b6a0188fdf9bd02275f796656ef428e86 /src/ui/util.c | |
parent | 408597bd4f71a13a511b6af33601dff0be2ed317 (diff) |
Working on multiple UI roots
Root focus switching and opening links in the other root.
Diffstat (limited to 'src/ui/util.c')
-rw-r--r-- | src/ui/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/util.c b/src/ui/util.c index b487e13d..9a023ab9 100644 --- a/src/ui/util.c +++ b/src/ui/util.c | |||
@@ -171,7 +171,9 @@ int keyMods_Sym(int kmods) { | |||
171 | 171 | ||
172 | int openTabMode_Sym(int kmods) { | 172 | int openTabMode_Sym(int kmods) { |
173 | const int km = keyMods_Sym(kmods); | 173 | const int km = keyMods_Sym(kmods); |
174 | return ((km & KMOD_PRIMARY) && (km & KMOD_SHIFT)) ? 1 : (km & KMOD_PRIMARY) ? 2 : 0; | 174 | return (km & KMOD_ALT ? otherRoot_OpenTabFlag : 0) | /* open to the side */ |
175 | (((km & KMOD_PRIMARY) && (km & KMOD_SHIFT)) ? new_OpenTabFlag : | ||
176 | (km & KMOD_PRIMARY) ? newBackground_OpenTabFlag : 0); | ||
175 | } | 177 | } |
176 | 178 | ||
177 | iRangei intersect_Rangei(iRangei a, iRangei b) { | 179 | iRangei intersect_Rangei(iRangei a, iRangei b) { |