You can use XSetWMHints like this :
#include <X11/Xlib.h>
#include <Q11Info>
// In widget constructor
// Allocate a hint structure - don't forget to XFree() in destructor!
XWMHints* hints(XAllocWMHints());
// Populate the hints structure with the hints you want to activate here.
// hints->flags = ...etc.
// Set the hints on the X11 window for the widget.
XSetWMHints
(QX11Info::display(), static_cast<Window>
(this
->winId
()), hints
);
#include <X11/Xlib.h>
#include <Q11Info>
// In widget constructor
// Allocate a hint structure - don't forget to XFree() in destructor!
XWMHints* hints(XAllocWMHints());
// Populate the hints structure with the hints you want to activate here.
// hints->flags = ...etc.
// Set the hints on the X11 window for the widget.
XSetWMHints(QX11Info::display(), static_cast<Window>(this->winId()), hints);
To copy to clipboard, switch view to plain text mode
Be careful though, it will hardly be portable...
Bookmarks