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

Please document: What is this for? #312

Open
probonopd opened this issue Dec 21, 2024 · 3 comments
Open

Please document: What is this for? #312

probonopd opened this issue Dec 21, 2024 · 3 comments

Comments

@probonopd
Copy link

probonopd commented Dec 21, 2024

Hello, is this usable for making a Wayland compositor with Qt?

I am looking for a way to write a minimalistic tiling window manager using wlroots that uses Qt6 Widgets to draw window decorations (title, close button, minimize/maximize buttons). I want it to support all Wayland protocols that wlroots is supporting without having much work on my side every time a new protocol is added.

Can this be done using qwlroots? Is there even an example maybe?

I want to make window decorations like this (see the window title and buttons):

image

And a drop shadow.

@Dami-star
Copy link
Contributor

You may need to rely on waylib. qwlroots is just a Qt-style binding of wlroots, which simplifies the way to call wlroots API in Qt projects.
https://github.com/vioken/waylib

@probonopd
Copy link
Author

Thanks, but isn't wlroots for making a Wayland compositor?

@zccrs
Copy link
Contributor

zccrs commented Dec 22, 2024

Thanks, but isn't wlroots for making a Wayland compositor?

Yes. you can use qwlroots like as the wlroots to make a Wayland compositor, but you can't using QtWidgets with qwlroots. https://github.com/vioken/qwlroots/blob/master/examples/tinywl/main.cpp this is an example of qwlroots, you can using QtCore with qwlroots, eg: use the Qt style signals to connect the wayland signals.

About the Waylib, you can't use QtWidgets also, but you can using QtDeclarative with it, https://github.com/vioken/waylib/tree/master/examples/tinywl this is an example for use QtQuick with wlroots.

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

No branches or pull requests

3 participants