XCB: Use application name for X11 selection owner name

This makes it possible for clipboard managers (or other scripts) to
distinguish different Qt applications and act differently.

Change-Id: I5bc5a1914b51127b24a81142ca9dbdb196ffd0d8
Fixes: QTBUG-72806
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
bb10
Max Mazurov 2019-01-02 16:55:24 +00:00 committed by Gatis Paeglis
parent 772f56c3cf
commit 2cd633e7ee
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@
#include <QtGui/private/qguiapplication_p.h>
#include <QtCore/QDebug>
#include <QtCore/QCoreApplication>
#include "qxcbconnection.h"
#include "qxcbkeyboard.h"
@ -817,7 +818,7 @@ xcb_window_t QXcbConnection::getQtSelectionOwner()
0); // value list
QXcbWindow::setWindowTitle(connection(), m_qtSelectionOwner,
QStringLiteral("Qt Selection Window"));
QLatin1String("Qt Selection Owner for ") + QCoreApplication::applicationName());
}
return m_qtSelectionOwner;
}