mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-01 11:22:20 +00:00
Use gtk clipboard when available to avoid https://bugreports.qt.io/browse/QTBUG-56595
This commit is contained in:
@@ -411,6 +411,11 @@ void ForceDisabled(QAction *action, bool disabled) {
|
||||
|
||||
MainWindow::MainWindow(not_null<Window::Controller*> controller)
|
||||
: Window::MainWindow(controller) {
|
||||
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||
if (Libs::gtk_clipboard_get != nullptr) {
|
||||
_gtkClipboard = Libs::gtk_clipboard_get(Libs::gdk_atom_intern("CLIPBOARD", true));
|
||||
}
|
||||
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||
}
|
||||
|
||||
void MainWindow::initHook() {
|
||||
|
Reference in New Issue
Block a user