Skip to content

Commit

Permalink
window_identifier: from_native with wayland only
Browse files Browse the repository at this point in the history
Do not require gtk4 feature to be enabled for
WindowIdentifier::from_native to allow to use this feature with only
wayland enabled.

Closes #171
  • Loading branch information
sophie-h committed Dec 20, 2023
1 parent 0f3958d commit c51f432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/window_identifier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ impl std::fmt::Debug for WindowIdentifier {
}

impl WindowIdentifier {
#[cfg(feature = "gtk4")]
#[cfg(feature = "gtk4_wayland")]
#[cfg(feature = "gtk4_x11")]
#[cfg_attr(docsrs, doc(cfg(feature = "gtk4")))]
/// Creates a [`WindowIdentifier`] from a [`gtk4::Native`](https://docs.gtk.org/gtk4/class.Native.html).
///
Expand Down

0 comments on commit c51f432

Please sign in to comment.