Skip to content

Added window_handle_06_rc and display_handle_06_rc in WindowAdapter #7910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VimYoung
Copy link

@VimYoung VimYoung commented Mar 21, 2025

Added window_handle_06_rc and display_handle_06_rc in slint::platform::WindowAdapter, existing functions (window_handle_06 and display_handle_06 ) are flawed and can not be used in practical use.
I have not removed them but marked them deprecated.

@CLAassistant
Copy link

CLAassistant commented Mar 21, 2025

CLA assistant check
All committers have signed the CLA.

@@ -142,6 +142,7 @@ pub trait WindowAdapter {

/// Re-implement this to support exposing raw window handles (version 0.6).
#[cfg(feature = "raw-window-handle-06")]
#[deprecated(since = "1.10.0", note = "use `window_handle_06_rc` instead.")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean to deprecate since 1.11 here, as 1.10 has already been released?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh yes, I wil fix it.


/// Re-implement this to support exposing raw window handles (version 0.6).
#[cfg(feature = "raw-window-handle-06")]
fn window_handle_06_rc(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this to compile, I think that you'll need to remove the "old" functions from WindowAdapterInternal and adjust the surrounding code that uses it.

@ogoffart
Copy link
Member

Is this PR still valid?
IIRC from the chat discussion, this is not going to solve your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants