mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-09 23:09:49 +01:00
parent
71dc9f6128
commit
52ee7a8748
1 changed files with 8 additions and 6 deletions
|
@ -731,14 +731,16 @@ bool CWLDataDeviceProtocol::wasDragSuccessful() {
|
|||
}
|
||||
|
||||
#ifndef NO_XWAYLAND
|
||||
for (auto const& o : g_pXWayland->pWM->dndDataOffers) {
|
||||
if (o->dead || !o->source || !o->source->hasDnd())
|
||||
continue;
|
||||
if (g_pXWayland->pWM) {
|
||||
for (auto const& o : g_pXWayland->pWM->dndDataOffers) {
|
||||
if (o->dead || !o->source || !o->source->hasDnd())
|
||||
continue;
|
||||
|
||||
if (o->source != dnd.currentSource)
|
||||
continue;
|
||||
if (o->source != dnd.currentSource)
|
||||
continue;
|
||||
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue