kotatogram-desktop/Telegram/SourceFiles/window
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
..
themes
main_window.cpp Do not destroy drag after launchDrag() 2021-12-22 14:15:36 +04:00
main_window.h
notifications_manager.cpp
notifications_manager.h
notifications_manager_default.cpp
notifications_manager_default.h
notifications_utilities.cpp Refactor icon unread counter painting. 2021-11-02 20:12:57 +04:00
notifications_utilities.h
section_memento.h
section_widget.cpp
section_widget.h
window.style
window_adaptive.cpp
window_adaptive.h
window_connecting_widget.cpp
window_connecting_widget.h
window_controller.cpp
window_controller.h
window_filters_menu.cpp
window_filters_menu.h
window_history_hider.cpp
window_history_hider.h
window_lock_widgets.cpp
window_lock_widgets.h
window_main_menu.cpp
window_main_menu.h
window_media_preview.cpp
window_media_preview.h
window_outdated_bar.cpp
window_outdated_bar.h
window_peer_menu.cpp
window_peer_menu.h
window_section_common.h
window_session_controller.cpp
window_session_controller.h
window_slide_animation.cpp Fix -Wunused-variable warnings 2021-07-13 21:43:34 +03:00
window_slide_animation.h
window_top_bar_wrap.h