|
1 | 1 | use cctk::{
|
2 | 2 | cosmic_protocols,
|
3 |
| - sctk::{ |
4 |
| - self, |
5 |
| - event_loop::WaylandSource, |
6 |
| - reexports::{calloop, client::protocol::wl_seat::WlSeat}, |
7 |
| - seat::{SeatHandler, SeatState}, |
8 |
| - }, |
9 | 3 | toplevel_info::{ToplevelInfo, ToplevelInfoHandler, ToplevelInfoState},
|
10 | 4 | toplevel_management::{ToplevelManagerHandler, ToplevelManagerState},
|
11 | 5 | wayland_client::{self, protocol::wl_output::WlOutput, WEnum},
|
12 | 6 | };
|
| 7 | +use sctk::{ |
| 8 | + self, |
| 9 | + reexports::{ |
| 10 | + calloop, calloop_wayland_source::WaylandSource, client::protocol::wl_seat::WlSeat, |
| 11 | + }, |
| 12 | + seat::{SeatHandler, SeatState}, |
| 13 | +}; |
| 14 | + |
13 | 15 | use cosmic_protocols::{
|
14 | 16 | toplevel_info::v1::client::zcosmic_toplevel_handle_v1::{self, ZcosmicToplevelHandleV1},
|
15 | 17 | toplevel_management::v1::client::zcosmic_toplevel_manager_v1,
|
@@ -152,7 +154,7 @@ pub(crate) fn toplevel_handler(
|
152 | 154 | let (globals, event_queue) = registry_queue_init(&conn)?;
|
153 | 155 | let mut event_loop = calloop::EventLoop::<AppData>::try_new()?;
|
154 | 156 | let qh = event_queue.handle();
|
155 |
| - let wayland_source = WaylandSource::new(event_queue)?; |
| 157 | + let wayland_source = WaylandSource::new(conn, event_queue); |
156 | 158 | let handle = event_loop.handle();
|
157 | 159 |
|
158 | 160 | handle.insert_source(wayland_source, |_, q, state| q.dispatch_pending(state))?;
|
|
0 commit comments