kotatogram-desktop/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
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
chat_helpers FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
codegen/scheme
core FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
countries
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
export
ffmpeg
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
intro
lang
layout
main
media FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
mtproto
overview
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
profile
settings
storage Send as a channel in HistoryWidget. 2021-11-26 18:00:18 +04:00
support
ui
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
app.h
config.h
facades.cpp
facades.h
logs.cpp
logs.h Fix possible deadlock in debug logs. 2021-05-13 15:36:08 +04:00
main.cpp
mainwidget.cpp FullMsgId rely on PeerId instead of ChannelId. 2021-12-22 10:11:57 +00:00
mainwidget.h
mainwindow.cpp
mainwindow.h
settings.cpp
settings.h
stdafx.h