xwayland: Guard against offers arriving after leaving surface
If the XdndEnter message is handled after leaving the current wayland surface m_visit will be null. BUG:449644
This commit is contained in:
parent
7a06ae733c
commit
5caa28c1a3
1 changed files with 4 additions and 0 deletions
|
@ -214,6 +214,10 @@ using Mime = QPair<QString, xcb_atom_t>;
|
||||||
|
|
||||||
void XToWlDrag::setDragTarget()
|
void XToWlDrag::setDragTarget()
|
||||||
{
|
{
|
||||||
|
if (!m_visit) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto *ac = m_visit->target();
|
auto *ac = m_visit->target();
|
||||||
|
|
||||||
auto seat = waylandServer()->seat();
|
auto seat = waylandServer()->seat();
|
||||||
|
|
Loading…
Reference in a new issue