Slightly reduce number of cfgs (#3071)
* Make Linux platforms less dependent on the root monitor handle * Add various functions to the Wayland platform to reduce cfgs * Don't use a cfg in listen_device_events * Don't use a cfg in set_content_protected * Fix instance of a target_os cfg
This commit is contained in:
parent
67b041e231
commit
a06ea45c0f
19 changed files with 121 additions and 125 deletions
|
|
@ -1273,10 +1273,9 @@ impl Window {
|
|||
/// - **iOS / Android / x11 / Wayland / Web / Orbital:** Unsupported.
|
||||
///
|
||||
/// [`NSWindowSharingNone`]: https://developer.apple.com/documentation/appkit/nswindowsharingtype/nswindowsharingnone
|
||||
pub fn set_content_protected(&self, _protected: bool) {
|
||||
#[cfg(any(macos_platform, windows_platform))]
|
||||
pub fn set_content_protected(&self, protected: bool) {
|
||||
self.window
|
||||
.maybe_queue_on_main(move |w| w.set_content_protected(_protected))
|
||||
.maybe_queue_on_main(move |w| w.set_content_protected(protected))
|
||||
}
|
||||
|
||||
/// Gets the current title of the window.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue