1
0
Fork 0
forked from wry/wry

jay-sync-file-surface: accept FdSync

This commit is contained in:
Julian Orth 2026-03-11 11:49:32 +01:00
parent 7192905158
commit 0a84bd47bf

View file

@ -1,6 +1,6 @@
use {
crate::{
gfx_api::SyncFile,
gfx_api::FdSync,
object::Version,
wire::{JaySyncFileSurfaceId, jay_sync_file_surface::*},
wl_usr::{
@ -19,8 +19,8 @@ pub struct UsrJaySyncFileSurface {
impl UsrJaySyncFileSurface {
#[expect(dead_code)]
pub fn set_acquire(&self, sf: Option<&SyncFile>) {
match sf {
pub fn set_acquire(&self, sf: Option<&FdSync>) {
match sf.and_then(|s| s.get_sync_file()) {
None => {
self.con.request(SetAcquireImmediate { self_id: self.id });
}