app: replace driver.Close with Perform(ActionClose)

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-06-23 14:31:44 +02:00
parent 43116400d0
commit 371de3462b
9 changed files with 26 additions and 45 deletions
+2 -5
View File
@@ -1034,6 +1034,8 @@ func (w *window) Perform(actions system.Action) {
switch action {
case system.ActionMove:
w.move()
case system.ActionClose:
w.dead = true
default:
w.resize(action)
}
@@ -1627,11 +1629,6 @@ func (w *window) SetInputHint(_ key.InputHint) {}
func (w *window) EditorStateChanged(old, new editorState) {}
// Close the window.
func (w *window) Close() {
w.dead = true
}
func (w *window) NewContext() (context, error) {
var firstErr error
if f := newWaylandVulkanContext; f != nil {