Skip to content

Commit 845424a

Browse files
gdk4-x11: add missing unsafe wrappers
1 parent 553760e commit 845424a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gdk4-x11/src/x11_display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ impl X11Display {
3838
#[doc(alias = "gdk_x11_display_get_xcursor")]
3939
#[doc(alias = "get_xcursor")]
4040
pub fn xcursor(&self, cursor: &gdk::Cursor) -> xlib::Cursor {
41-
ffi::gdk_x11_display_get_xcursor(self.to_glib_none().0, cursor.to_glib_none().0)
41+
unsafe { ffi::gdk_x11_display_get_xcursor(self.to_glib_none().0, cursor.to_glib_none().0) }
4242
}
4343

4444
#[cfg(any(feature = "xlib", feature = "dox"))]
4545
#[cfg_attr(feature = "dox", doc(cfg(feature = "xlib")))]
4646
#[doc(alias = "gdk_x11_display_get_xrootwindow")]
4747
#[doc(alias = "get_xrootwindow")]
4848
pub fn xrootwindow(&self) -> xlib::Window {
49-
ffi::gdk_x11_display_get_xrootwindow(self.to_glib_none().0)
49+
unsafe { ffi::gdk_x11_display_get_xrootwindow(self.to_glib_none().0) }
5050
}
5151

5252
#[cfg(any(feature = "xlib", feature = "dox"))]

gdk4-x11/src/x11_monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ impl X11Monitor {
1414
#[doc(alias = "gdk_x11_monitor_get_output")]
1515
#[doc(alias = "get_output")]
1616
pub fn output(&self) -> xlib::XID {
17-
ffi::gdk_x11_monitor_get_output(self.to_glib_none().0)
17+
unsafe { ffi::gdk_x11_monitor_get_output(self.to_glib_none().0) }
1818
}
1919
}

gdk4-x11/src/x11_surface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl X11Surface {
1414
#[doc(alias = "gdk_x11_surface_get_xid")]
1515
#[doc(alias = "get_xid")]
1616
pub fn xid(&self) -> xlib::Window {
17-
ffi::gdk_x11_surface_get_xid(self.to_glib_none().0)
17+
unsafe { ffi::gdk_x11_surface_get_xid(self.to_glib_none().0) }
1818
}
1919

2020
#[cfg(any(feature = "xlib", feature = "dox"))]

0 commit comments

Comments
 (0)