AyuGramDesktop/Telegram/SourceFiles
Magnus Groß c2b2d0a92a Do not destroy drag after launchDrag()
On X11 we need to keep the QDrag around a little longer.

Right now, drag is scoped local to launchDrag() and will be destroyed
immediately when launchDrag() finishes. However for X11 we must keep the
drag object alive a little longer. It may only be destroyed once the
drag operation has been accepted by another window, otherwise drag and
drop is broken on Linux and no action happens when something is dragged
from Telegram into another window.

This is because there is still communication happening in the XDND
protocol once QDrag::exec() finishes. See the documentation for
reference: https://freedesktop.org/wiki/Specifications/XDND/

Fixes #17291
2021-12-22 14:15:36 +04:00
..
_other Revert "Use kernel accelerated sendfile to copy files on Linux" 2021-12-02 09:15:23 +04:00
api FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
boxes Fix about box text labels layout. 2021-12-22 10:11:57 +00:00
calls Removed unused MTPBool from callbacks on done. 2021-11-30 17:37:39 +04:00
chat_helpers FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
codegen/scheme Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
core FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
countries Moved out getting of phone pattern groups from PhoneInput fields. 2021-11-30 17:38:17 +04:00
data FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
dialogs FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
editor Add Qt 6 support 2021-10-21 13:15:00 +04:00
export Update API scheme on layer 135. 2021-11-26 18:00:20 +04:00
ffmpeg Add Qt 6 support 2021-10-21 13:15:00 +04:00
history FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
info FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
inline_bots Fix semi-transparent inline result thumbnails. 2021-12-02 16:03:13 +04:00
intro Moved out getting of phone pattern groups from PhoneInput fields. 2021-11-30 17:38:17 +04:00
lang Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
layout Add support for SVG patterns in wallpapers. 2021-08-11 19:56:12 +03:00
main Don't use MTP for PeerData::isSelf. 2021-12-02 13:36:49 +04:00
media FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
mtproto Get rid of deprecated OpenSSL <1.1 functions 2021-12-16 13:05:53 +04:00
overview Track noforwards flag in specific messages. 2021-11-26 18:00:22 +04:00
passport FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
payments FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
platform Fix building on Windows. 2021-12-14 16:27:57 +04:00
profile Moved code for api participants to separated file. 2021-11-26 18:00:21 +04:00
settings Move global privacy setting down. 2021-12-02 13:36:49 +04:00
storage Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
support Removed unused MTP::Error from callbacks on fail. 2021-11-30 17:37:07 +04:00
ui Fix "Send As" button on Retina screens. 2021-11-30 20:19:23 +04:00
window Do not destroy drag after launchDrag() 2021-12-22 14:15:36 +04:00
apiwrap.cpp FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
apiwrap.h FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
app.cpp Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
app.h Use Images::Read instead of App::readImage. 2021-08-11 18:55:08 +03:00
config.h Moved some constants for peer editing to separated file. 2021-10-19 06:34:27 +03:00
facades.cpp Update API scheme to layer 135. 2021-11-26 18:00:18 +04:00
facades.h Removed Main::Session forward declaration from data_types. 2021-09-01 01:23:20 +03:00
logs.cpp Support autostart in Windows Store version. 2021-11-04 12:36:28 +04:00
logs.h Fix possible deadlock in debug logs. 2021-05-13 15:36:08 +04:00
main.cpp Use single LEGAL file with license and copyright. 2018-01-03 13:23:14 +03:00
mainwidget.cpp FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
mainwidget.h Move volume dropdown management to audio player. 2021-11-26 18:00:21 +04:00
mainwindow.cpp Refactor icon unread counter painting. 2021-11-02 20:12:57 +04:00
mainwindow.h Refactor icon unread counter painting. 2021-11-02 20:12:57 +04:00
settings.cpp Display dates with the system date format 2021-10-11 21:56:29 +04:00
settings.h Display dates with the system date format 2021-10-11 21:56:29 +04:00
stdafx.h Add Qt 6 support 2021-10-21 13:15:00 +04:00