Skip to content

[WIP—not done] Add Wayland support#3

Open
ctrlcctrlv wants to merge 2 commits intobvbfan:masterfrom
ctrlcctrlv:wayland
Open

[WIP—not done] Add Wayland support#3
ctrlcctrlv wants to merge 2 commits intobvbfan:masterfrom
ctrlcctrlv:wayland

Conversation

@ctrlcctrlv
Copy link
Copy Markdown

No description provided.

@ctrlcctrlv ctrlcctrlv force-pushed the wayland branch 3 times, most recently from 1dbcd62 to e521f80 Compare November 11, 2021 19:36
@bvbfan
Copy link
Copy Markdown
Owner

bvbfan commented Dec 30, 2023

What else have to be done, I test it and it works on Wayland

@clapbr
Copy link
Copy Markdown

clapbr commented Jul 18, 2024

What else have to be done, I test it and it works on Wayland

It does run but the functions that actually send the keypresses are empty placeholders.
@ctrlcctrlv have you ever finished this?

@clapbr
Copy link
Copy Markdown

clapbr commented Jul 19, 2024

Was able to make it work by filling missing functions. Thanks to the recently added libei support on Plasma.
XTest fake keyboard input works now (including xdotool), filling the last remaining piece this needed.

Focus is a bit buggy and unhide doesn't work but the OSK itself is working fine, including modkey handling.

Whenever I get some free time I'll try a PR but nothing special was needed except avoiding QX11Info::display() and using XOpenDisplay and XCloseDisplay instead.

@clapbr
Copy link
Copy Markdown

clapbr commented Jul 19, 2024

actually, just tried master (including QT6 support) with flag --platform xcb and it works totally fine, so, the simplest solution would be just detect if we're on wayland and force xcb QT platform plugin, or at least warn the user he can do that.

@bvbfan
Copy link
Copy Markdown
Owner

bvbfan commented Aug 1, 2024

actually, just tried master (including QT6 support) with flag --platform xcb and it works totally fine, so, the simplest solution would be just detect if we're on wayland and force xcb QT platform plugin, or at least warn the user he can do that.

When you force xcb platform it's executed as XWayland window i.e. not a native Wayland one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants