Use smithay-client-toolkit's dpi handling. (#724)
* Use smithay-client-toolkit's dpi handling. * Add CHANGELOG entry.
This commit is contained in:
parent
cb0a085968
commit
fd349f1822
4 changed files with 16 additions and 114 deletions
|
|
@ -123,12 +123,10 @@ impl EventsLoop {
|
|||
},
|
||||
};
|
||||
|
||||
let cb_store = store.clone();
|
||||
|
||||
let env = Environment::from_display_with_cb(
|
||||
&display,
|
||||
&mut event_queue,
|
||||
move |event, registry| {
|
||||
move |event, registry| {
|
||||
match event {
|
||||
GlobalEvent::New { id, ref interface, version } => {
|
||||
if interface == "wl_seat" {
|
||||
|
|
@ -138,8 +136,6 @@ impl EventsLoop {
|
|||
GlobalEvent::Removed { id, ref interface } => {
|
||||
if interface == "wl_seat" {
|
||||
seat_manager.remove_seat(id)
|
||||
} else if interface == "wl_output" {
|
||||
cb_store.lock().unwrap().remove_output(id);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue