upgrade gtk-rs version
This commit is contained in:
parent
0b5f6b8386
commit
cc577b1367
23 changed files with 401 additions and 317 deletions
4
src/x.rs
4
src/x.rs
|
|
@ -16,10 +16,10 @@ pub fn get_window_x11<T: IsA<gtk4::Window>>(
|
|||
) -> Option<(gdk4_x11::X11Display, gdk4_x11::X11Surface)> {
|
||||
let surface = window
|
||||
.upcast_ref()
|
||||
.surface()?
|
||||
.surface()
|
||||
.downcast::<gdk4_x11::X11Surface>()
|
||||
.ok()?;
|
||||
let display = surface.display()?.downcast::<gdk4_x11::X11Display>().ok()?;
|
||||
let display = surface.display().downcast::<gdk4_x11::X11Display>().ok()?;
|
||||
Some((display, surface))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue