mirror of
https://github.com/rustdesk/qemu-display.git
synced 2026-10-26 14:10:31 +00:00
gtk: make app non-unique
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
1 parent
64a6569da7
commit
25537268d1
2 files changed
+2
-1
No files matched your search
@@ -92,7 +92,7 @@ impl QemuApplication {
|
|||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
glib::Object::new(&[
|
glib::Object::new(&[
|
||||||
("application-id", &Some(config::APP_ID)),
|
("application-id", &Some(config::APP_ID)),
|
||||||
("flags", &ApplicationFlags::empty()),
|
("flags", &ApplicationFlags::NON_UNIQUE),
|
||||||
])
|
])
|
||||||
.expect("Application initialization failed...")
|
.expect("Application initialization failed...")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ impl QemuConsole {
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
priv_.console.set(console).unwrap();
|
priv_.console.set(console).unwrap();
|
||||||
|
priv_.area.grab_focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn qemu_console(&self) -> &Console {
|
fn qemu_console(&self) -> &Console {
|
||||||
|
|||||||
Reference in new issue
Block a user