Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Stash un-looked-at changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Jul 15, 2024
1 parent 5ff0302 commit a8c0b2f
Show file tree
Hide file tree
Showing 6 changed files with 322 additions and 52 deletions.
2 changes: 1 addition & 1 deletion v2/src/backend/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mod new_wayland;
mod shared;

pub use new_wayland::*;
pub(crate) use new_wayland::*;
6 changes: 3 additions & 3 deletions v2/src/backend/new_wayland/run_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use crate::{
Glazier, PlatformHandler,
};

pub fn launch(
pub(crate) fn launch(
mut handler: Box<dyn PlatformHandler>,
on_init: impl FnOnce(&mut dyn PlatformHandler, Glazier),
) -> Result<(), Error> {
Expand Down Expand Up @@ -141,12 +141,12 @@ impl WaylandState {
}

#[derive(Clone)]
pub struct LoopHandle {
pub(crate) struct LoopHandle {
loop_sender: channel::Sender<LoopCallback>,
}

impl LoopHandle {
pub fn run_on_main<F>(&self, callback: F)
pub(crate) fn run_on_main<F>(&self, callback: F)
where
F: FnOnce(&mut dyn PlatformHandler, Glazier) + Send + 'static,
{
Expand Down
Loading

0 comments on commit a8c0b2f

Please sign in to comment.