Skip to content

Commit 909f1f3

Browse files
klemensnjpochyla
andauthored
Fix missing import in gtk/window.rs (#2011)
Cherry-picked from jpochyla/druid@a9522f5 . Otherwise building jpochyla/psst on Linux or OpenBSD fails: ``` error[E0433]: failed to resolve: use of undeclared type `XcbHandle` --> /home/kn/src/druid/druid-shell/src/backend/gtk/window.rs:118:30 | 118 | RawWindowHandle::Xcb(XcbHandle::empty()) | ^^^^^^^^^ not found in this scope | ``` This code was introduced in 2da53f0 which seems to target Windows and Mac but not Linux, so I assume that is why it went unnoticed. Co-authored-by: Jan Pochyla <[email protected]>
1 parent e9d6792 commit 909f1f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

druid-shell/src/backend/gtk/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use instant::Duration;
4444
use tracing::{error, warn};
4545

4646
#[cfg(feature = "raw-win-handle")]
47-
use raw_window_handle::{HasRawWindowHandle, RawWindowHandle};
47+
use raw_window_handle::{unix::XcbHandle, HasRawWindowHandle, RawWindowHandle};
4848

4949
use crate::kurbo::{Insets, Point, Rect, Size, Vec2};
5050
use crate::piet::{Piet, PietText, RenderContext};

0 commit comments

Comments
 (0)