Watch
1
0
Fork
You've already forked smithay
0

fix compilation errors

don't think CI normally tries compiling these, which is why it might have not been noticed until now
This commit is contained in:
Seirra 2026-07-11 16:31:29 +01:00 • committed by Victoria Brekenfeld
commit d60e661c97
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
use std::{collections::HashMap, path::PathBuf, time::Duration};
use drm::control::{connector, crtc};
use smithay::reexports::drm::control::{connector, crtc};
use smithay_drm_extras::{
display_info,
drm_scanner::{self, DrmScanEvent},

View file

@ -19,7 +19,7 @@ use smithay::{
};
use wayland_sys::{
client::{wl_display, wl_display_get_fd, wl_proxy, wl_proxy_get_id},
client::*,
common::{wl_fixed_t, wl_fixed_to_double},
ffi_dispatch,
};
@ -159,8 +159,8 @@ impl Wlcs for AnvilDisplayServerHandle {
}
fn position_window_absolute(&self, display: *mut wl_display, surface: *mut wl_proxy, x: i32, y: i32) {
let client_id = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_display_get_fd, display) };
let surface_id = unsafe { ffi_dispatch!(WAYLAND_CLIENT_HANDLE, wl_proxy_get_id, surface) };
let client_id = unsafe { ffi_dispatch!(wayland_client_handle(), wl_display_get_fd, display) };
let surface_id = unsafe { ffi_dispatch!(wayland_client_handle(), wl_proxy_get_id, surface) };
if let Some((ref sender, _)) = self.server {
let _ = sender.send(WlcsEvent::PositionWindow {
client_id,