[gnome-boxes/wip/display-management: 6/6] machine: Do not destroy display on reboots
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/display-management: 6/6] machine: Do not destroy display on reboots
- Date: Tue, 14 Jul 2020 11:16:30 +0000 (UTC)
commit b0ad9b127c0f30b391b8d1569c70a25403779853
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Jul 8 16:56:02 2020 +0200
machine: Do not destroy display on reboots
Fixes #479
src/machine.vala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 0e4ca0ec..ce0e4e40 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -161,6 +161,7 @@ protected void show_display () {
var widget = display.get_display (0);
widget_remove (widget);
window.display_page.show_display (display, widget);
+ window.topbar.status = this.name;
widget.grab_focus ();
break;
@@ -233,8 +234,9 @@ protected void show_display () {
}
load_screenshot ();
-
- disconnect_display ();
+ if (!stay_on_display) {
+ disconnect_display ();
+ }
});
need_password_id = _display.notify["need-password"].connect (handle_auth);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]