mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
add x11 timestamp
Change-Id: I3070d8d282e05830eb9fff2c224069b8cd319716
This commit is contained in:
parent
f5ee6b649e
commit
c446faddcf
@ -20,6 +20,8 @@
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
#include <QX11Info>
|
||||
|
||||
typedef QMap<quint32, QString> WindowDict;
|
||||
|
||||
/*
|
||||
@ -81,17 +83,20 @@ public Q_SLOTS: // METHODS
|
||||
inline QDBusPendingReply<> Activate()
|
||||
{
|
||||
QList<QVariant> argumentList;
|
||||
|
||||
argumentList << QVariant::fromValue(QX11Info::getTimestamp());
|
||||
|
||||
return asyncCallWithArgumentList(QStringLiteral("Activate"), argumentList);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleMenuItem(const QString &item)
|
||||
{
|
||||
return asyncCall(QStringLiteral("HandleMenuItem"), item);
|
||||
return asyncCall(QStringLiteral("HandleMenuItem"), QVariant::fromValue(QX11Info::getTimestamp()), item);
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> HandleDragDrop(const QStringList &uriList)
|
||||
{
|
||||
return asyncCall(QStringLiteral("HandleDragDrop"), QVariant::fromValue(uriList));
|
||||
return asyncCall(QStringLiteral("HandleDragDrop"), QVariant::fromValue(QX11Info::getTimestamp()), QVariant::fromValue(uriList));
|
||||
}
|
||||
|
||||
inline QDBusPendingReply<> RequestDock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user