Working with Virtual Desktops for Linux?
-
I am working on CentOS6, which has a dynamic number of virtual desktops available.
- Is there a way to query which virtual desktop(s) are currently active?
- Is there a way to query which virtual desktop a widget currently resides on?
- Is there a way to move a widget from one virtual desktop to another?
-
Please check out the QDesktopWidget class: "link":http://doc.qt.io/qt-5/qdesktopwidget.html and QScreen: "link":http://doc.qt.io/qt-5/qscreen.html.
-
Thanks sierdzio, but I have already taken a look at the documentation for those classes. Perhaps I am missing something, but when I get a QDesktop widget and query the screenCount, it returns 2.
I presently have 4 "desktops" with dual monitors. I would expect the result then to be 8, not 2.
-
Hi and welcome to devnet,
Unless I'm mistaken, QDesktopWidget encapsulate the concept of "on screen desktop" be it multi screen or a large virtual two screen spanning desktop. It doesn't know about the virtual desktop you can create through your desktop environment (e.g. KDE, Gnome etc.)
-
AFAIK, no, it's more something that should be handled by your window manager