0

I learned of the tool known as Xephyr recently, and was wondering if I could use it in a QT widget. What I am envisioning is an embedded Xephyr, or any X11 server really, instance running in a small corner of my Qt window. Is what I am asking for impossible?

I know about the X11 embed protocol, and that I can embed an application in my Qt window with it, but for experimental purposes I want to see if using a nested X server is possible.

Ank i zle
  • 2,089
  • 3
  • 14
  • 36
  • The new 'root' window created by Xephyr is an X11 window just like any other. So just use its window id when you call `QWidget::createWindowContainer(QWindow::fromWinId(xephyr_wid))`. – G.M. Mar 07 '22 at 09:33
  • @G.M. I tried using Xephyr's `-parent` option in the command line, but I get an X11 error saying `Error code: 8 Sequence number: 5 Major code: 1 Minor code: 0 Error value: 50331654`. And when I try to use [this](https://stackoverflow.com/questions/151407/how-to-get-an-x11-window-from-a-process-id) answer to just get the window ID of Xephyr to attach that way, it yields 0. Am I doing something wrong? – Ank i zle Mar 07 '22 at 10:18

0 Answers0