Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxcbsystemtraytracker.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#pragma once
6
8
9#include <xcb/xcb.h>
10
12
13class QXcbConnection;
14class QScreen;
15
17{
19public:
21
22 xcb_window_t trayWindow();
23 void requestSystemTrayWindowDock(xcb_window_t window) const;
24
25 void notifyManagerClientMessageEvent(const xcb_client_message_event_t *);
26
27 void handleDestroyNotifyEvent(const xcb_destroy_notify_event_t *) override;
28
29 xcb_visualid_t visualId();
32
33private:
34 explicit QXcbSystemTrayTracker(QXcbConnection *connection,
35 xcb_atom_t trayAtom,
36 xcb_atom_t selection);
37
38 void emitSystemTrayWindowChanged();
39 xcb_visualid_t netSystemTrayVisual();
40
41 const xcb_atom_t m_selection;
42 const xcb_atom_t m_trayAtom;
43 QXcbConnection *m_connection;
44 xcb_window_t m_trayWindow = 0;
45};
46
47QT_END_NAMESPACE
Definition qlist.h:80
void requestSystemTrayWindowDock(xcb_window_t window) const
void notifyManagerClientMessageEvent(const xcb_client_message_event_t *)
void handleDestroyNotifyEvent(const xcb_destroy_notify_event_t *) override
QXcbWMSupport(QXcbConnection *c)
const QList< xcb_window_t > & virtualRoots() const
bool isSupportedByWM(xcb_atom_t atom) const
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
#define HANDLE_KEYBOARD_EVENT(event_t, handler)
const char * xcb_protocol_request_codes[]
#define CASE_PRINT_AND_RETURN(name)
static Qt::MouseButtons translateMouseButtons(int s)
const char * xcb_errors[]
#define PRINT_AND_RETURN(name)
#define XI_PRINT_AND_RETURN(name)
#define XI_CASE_PRINT_AND_RETURN(name)
#define HANDLE_PLATFORM_WINDOW_EVENT(event_t, windowMember, handler)
#define Q_XCB_REPLY(call,...)