1
0
Fork 0

Fix warnings on X11 (#160)

This commit is contained in:
Micah Johnston 2023-12-16 19:31:06 -06:00 committed by GitHub
parent 92f1a19b81
commit b59a67d287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
use std::ffi::c_void;
use std::marker::PhantomData; use std::marker::PhantomData;
use std::os::raw::{c_ulong, c_void};
use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::mpsc; use std::sync::mpsc;
use std::sync::Arc; use std::sync::Arc;
@ -306,6 +306,8 @@ impl Window {
// compared to when raw-gl-context was a separate crate. // compared to when raw-gl-context was a separate crate.
#[cfg(feature = "opengl")] #[cfg(feature = "opengl")]
let gl_context = fb_config.map(|fb_config| { let gl_context = fb_config.map(|fb_config| {
use std::ffi::c_ulong;
let window = window_id as c_ulong; let window = window_id as c_ulong;
let display = xcb_connection.conn.get_raw_dpy(); let display = xcb_connection.conn.get_raw_dpy();
@ -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!() todo!()
} }