not run window focus service on wayland (#9354)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
81fc22a156
commit
40af9dc78b
2 changed files with 14 additions and 5 deletions
|
|
@ -106,7 +106,10 @@ pub fn new() -> ServerPtr {
|
|||
if !display_service::capture_cursor_embedded() {
|
||||
server.add_service(Box::new(input_service::new_cursor()));
|
||||
server.add_service(Box::new(input_service::new_pos()));
|
||||
server.add_service(Box::new(input_service::new_window_focus()));
|
||||
if scrap::is_x11() {
|
||||
// wayland does not support multiple displays currently
|
||||
server.add_service(Box::new(input_service::new_window_focus()));
|
||||
}
|
||||
}
|
||||
}
|
||||
Arc::new(RwLock::new(server))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue