refactor: use cctk
This commit is contained in:
parent
1b8a399ebd
commit
6e91eabf4c
46 changed files with 224 additions and 183 deletions
|
|
@ -1,18 +1,18 @@
|
|||
use crate::platform_specific::wayland::{
|
||||
event_loop::state::SctkState, sctk_event::SctkEvent,
|
||||
};
|
||||
use sctk::{delegate_output, output::OutputHandler};
|
||||
use cctk::sctk::{delegate_output, output::OutputHandler};
|
||||
|
||||
impl OutputHandler for SctkState {
|
||||
fn output_state(&mut self) -> &mut sctk::output::OutputState {
|
||||
fn output_state(&mut self) -> &mut cctk::sctk::output::OutputState {
|
||||
&mut self.output_state
|
||||
}
|
||||
|
||||
fn new_output(
|
||||
&mut self,
|
||||
_conn: &sctk::reexports::client::Connection,
|
||||
_qh: &sctk::reexports::client::QueueHandle<Self>,
|
||||
output: sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
_conn: &cctk::sctk::reexports::client::Connection,
|
||||
_qh: &cctk::sctk::reexports::client::QueueHandle<Self>,
|
||||
output: cctk::sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
) {
|
||||
self.sctk_events.push(SctkEvent::NewOutput {
|
||||
id: output.clone(),
|
||||
|
|
@ -23,9 +23,9 @@ impl OutputHandler for SctkState {
|
|||
|
||||
fn update_output(
|
||||
&mut self,
|
||||
_conn: &sctk::reexports::client::Connection,
|
||||
_qh: &sctk::reexports::client::QueueHandle<Self>,
|
||||
output: sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
_conn: &cctk::sctk::reexports::client::Connection,
|
||||
_qh: &cctk::sctk::reexports::client::QueueHandle<Self>,
|
||||
output: cctk::sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
) {
|
||||
if let Some(info) = self.output_state.info(&output) {
|
||||
self.sctk_events.push(SctkEvent::UpdateOutput {
|
||||
|
|
@ -37,9 +37,9 @@ impl OutputHandler for SctkState {
|
|||
|
||||
fn output_destroyed(
|
||||
&mut self,
|
||||
_conn: &sctk::reexports::client::Connection,
|
||||
_qh: &sctk::reexports::client::QueueHandle<Self>,
|
||||
output: sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
_conn: &cctk::sctk::reexports::client::Connection,
|
||||
_qh: &cctk::sctk::reexports::client::QueueHandle<Self>,
|
||||
output: cctk::sctk::reexports::client::protocol::wl_output::WlOutput,
|
||||
) {
|
||||
self.sctk_events.push(SctkEvent::RemovedOutput(output));
|
||||
// TODO clean up any layer surfaces on this output?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue