Changeset View
Changeset View
Standalone View
Standalone View
xwl/selection.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | */ | 55 | */ | ||
56 | class Selection : public QObject | 56 | class Selection : public QObject | ||
57 | { | 57 | { | ||
58 | Q_OBJECT | 58 | Q_OBJECT | ||
59 | public: | 59 | public: | ||
60 | static xcb_atom_t mimeTypeToAtom(const QString &mimeType); | 60 | static xcb_atom_t mimeTypeToAtom(const QString &mimeType); | ||
61 | static xcb_atom_t mimeTypeToAtomLiteral(const QString &mimeType); | 61 | static xcb_atom_t mimeTypeToAtomLiteral(const QString &mimeType); | ||
62 | static QStringList atomToMimeTypes(xcb_atom_t atom); | 62 | static QStringList atomToMimeTypes(xcb_atom_t atom); | ||
63 | static QString atomName(xcb_atom_t atom); | ||||
63 | static void sendSelNotify(xcb_selection_request_event_t *event, bool success); | 64 | static void sendSelNotify(xcb_selection_request_event_t *event, bool success); | ||
64 | 65 | | |||
65 | // on selection owner changes by X clients (Xwl -> Wl) | 66 | // on selection owner changes by X clients (Xwl -> Wl) | ||
66 | bool handleXfixesNotify(xcb_xfixes_selection_notify_event_t *event); | 67 | bool handleXfixesNotify(xcb_xfixes_selection_notify_event_t *event); | ||
67 | bool filterEvent(xcb_generic_event_t *event); | 68 | bool filterEvent(xcb_generic_event_t *event); | ||
68 | 69 | | |||
69 | xcb_atom_t atom() const { | 70 | xcb_atom_t atom() const { | ||
70 | return m_atom; | 71 | return m_atom; | ||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |