-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Possible Integration with tabbed? #1358
Comments
Nice idea. And many thanks for the interest . We should just find out how to do that when working with Qt library, which we use for the frontend. 🤔 |
Qt has a Now, if you want to have trees... that's a little more complex |
I tried looking up how to do embedd a QML application into an external window that is only known by its Window Id. I could not really find anything (only very old Qt 4.8-style way that would have accepted a Window-Id). NB: On tabbed support, I planned using: https://github.com/antonypro/QGoodWindow |
Update: I may have found a way to get this implemented for Qt based applications (like Contour) via QWindow::fromId(WId embedInto) PoC draft // Target window to embed into
unsigned int windowId = 0x12345;
// Convert window ID to native X11 window handle
Window nativeWindow = XGetWindow(display, XDefaultRootWindow(display), windowId);
// Create a QWindow from the native window
QWindow* qWindow = QWindow::fromWinId(nativeWindow);
// Create a QWidget from the QWindow
QWidget* embeddedWidget = QWidget::createWindowContainer(qWindow);
// Add contour QML app here (?)
QQuickView* qmlView = new QQuickView();
embeddedWidget->layout()->addWidget(qmlView);
// Parent the embeddedWidget to the native window
embeddedWidget->setParent(nativeWindow);
// Show and manage the embeddedWidget
embeddedWidget->show(); |
Hi, really like the work done with this terminal. I was just wondering if it was possible to use the tabbing utility from suckless, tabbed (https://tools.suckless.org/tabbed/) along with contour. Other terminals like alacritty allow the ability to embed using the
--embed
flag allowing integration. Could this possibly pursued be as a short term solution to UI tab? I didn't mark this as a feature request because I'm not sure if something needs to be changed.The text was updated successfully, but these errors were encountered: