diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-26 14:23:47 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-26 18:00:46 +1100 |
commit | fe87114074ae72e3c548f5b05fb50a919eda0f94 (patch) | |
tree | 4d5efbb1562a5ed5d922598335d71fdd80ee1412 /pkg/gui/types | |
parent | ad7703df65e09d23bb7e709ca9b22251673ac272 (diff) |
don't hide transient views upon losing focus
Diffstat (limited to 'pkg/gui/types')
-rw-r--r-- | pkg/gui/types/context.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index bf4051538..1f7d753e7 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -33,8 +33,10 @@ type IBaseContext interface { SetWindowName(string) GetKey() ContextKey IsFocusable() bool - // if a context is transient, then when it loses focus, its corresponding view - // returns control of the window to the default view for that window + // if a context is transient, then it only appears via some keybinding on another + // context. Until we add support for having multiple of the same context, no two + // of the same transient context can appear at once meaning one might be 'stolen' + // from another window. IsTransient() bool // returns the desired title for the view upon activation. If there is no desired title (returns empty string), then |