Skip to content

Commit

Permalink
Fix warnings on X11 (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahrj authored Dec 17, 2023
1 parent 92f1a19 commit b59a67d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/x11/window.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::ffi::c_void;
use std::marker::PhantomData;
use std::os::raw::{c_ulong, c_void};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc;
use std::sync::Arc;
Expand Down Expand Up @@ -306,6 +306,8 @@ impl Window {
// compared to when raw-gl-context was a separate crate.
#[cfg(feature = "opengl")]
let gl_context = fb_config.map(|fb_config| {
use std::ffi::c_ulong;

let window = window_id as c_ulong;
let display = xcb_connection.conn.get_raw_dpy();

Expand Down Expand Up @@ -724,6 +726,6 @@ fn mouse_id(id: u8) -> MouseButton {
}
}

pub fn copy_to_clipboard(data: &str) {
pub fn copy_to_clipboard(_data: &str) {
todo!()
}

0 comments on commit b59a67d

Please sign in to comment.