5#include "private/qcapturablewindow_p.h"
15 XCloseDisplay(m_display);
25 Atom atom = XInternAtom(
display,
"_NET_CLIENT_LIST",
true);
28 unsigned long windowsCount = 0;
29 unsigned long bytesAfter = 0;
30 unsigned char *
data =
nullptr;
31 const int status = XGetWindowProperty(
display, XDefaultRootWindow(
display), atom, 0L, (~0L),
32 false, AnyPropertyType, &actualType, &
format,
33 &windowsCount, &bytesAfter, &
data);
42 for (
unsigned long i = 0;
i < windowsCount;
i++) {
43 auto windowData = std::make_unique<QCapturableWindowPrivate>();
53 result.push_back(windowData.release()->create());
62 XWindowAttributes windowAttributes = {};
65 && windowAttributes.depth > 0;
68Display *QX11CapturableWindows::display()
const
70 std::call_once(m_displayOnceFlag, [
this]() { m_display = XOpenDisplay(
nullptr); });
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isWindowValid(const QCapturableWindowPrivate &window) const override
QList< QCapturableWindow > windows() const override
~QX11CapturableWindows() override
[Window class with invokable method]
struct wl_display * display
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
QScopeGuard< typename std::decay< F >::type > qScopeGuard(F &&f)
[qScopeGuard]
static QT_BEGIN_NAMESPACE QString windowTitle(HWND hwnd)