mirror of
https://github.com/rustdesk/qemu-display.git
synced 2025-07-03 08:15:40 +00:00
gtk: make app non-unique
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
64a6569da7
commit
25537268d1
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user