Skip to content
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

Add wayland support to devdraw #525

Closed
wants to merge 4 commits into from
Closed

Conversation

majiru
Copy link

@majiru majiru commented Oct 8, 2021

There isn't a great way to move the mouse that I've found, so that is left unimplemented. Everything else seems to work fairly well under sway, and I would believe this to hold true for most other wlroots compositors. I would be interested in reports for those running the wayland variants of gnome of KDE, I have been unable to test under those compositors.

@The-King-of-Toasters
Copy link

It's no XWarpPointer, but it might be worth checking out the relative-pointer and pointer-constraints extensions.

@The-King-of-Toasters
Copy link

The-King-of-Toasters commented Oct 19, 2021

I cannot run devdraw, as it immediately exits with threads in main proc exited w/o threadmaybackground. I'm running sway 1.6.1+wlroots 0.14.1-2 on Arch Linux. Note that I can run your wayland patch for drawterm.

@fhs
Copy link
Contributor

fhs commented Dec 18, 2021

Seem to be working in sway after the following change. A bit disappointed it doesn't handle scaling on high dpi display -- that's the main reason I'd want to use wayland natively.

diff --git a/src/cmd/devdraw/wl-screen.c b/src/cmd/devdraw/wl-screen.c
index 3710b43c..e5a32ead 100644
--- a/src/cmd/devdraw/wl-screen.c
+++ b/src/cmd/devdraw/wl-screen.c
@@ -149,6 +149,7 @@ gfx_main(void)
 {
        clientruning = 1;
        gfx_started();
+       for(;;) sleep(3600*1000);
 }

 Memimage*

@hdonnay
Copy link

hdonnay commented Apr 23, 2022

I embarked on the same quest before seeing this PR, and have pushed my work to #550. It's stable enough for my daily use, just acme maximized on a monitor all day. It's even got pointer warping working, although I've only tested that under GNOME.

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.

4 participants