mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-17 21:13:48 -07:00
@@ -814,3 +814,9 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, timespec* when) {
|
||||
bool CWLDataDeviceProtocol::dndActive() {
|
||||
return dnd.currentSource;
|
||||
}
|
||||
|
||||
void CWLDataDeviceProtocol::abortDndIfPresent() {
|
||||
if (!dndActive())
|
||||
return;
|
||||
abortDrag();
|
||||
}
|
||||
|
@@ -144,6 +144,9 @@ class CWLDataDeviceProtocol : public IWaylandProtocol {
|
||||
// TODO: move handling to seatmgr
|
||||
bool dndActive();
|
||||
|
||||
// called on an escape key pressed, for moments where it gets stuck
|
||||
void abortDndIfPresent();
|
||||
|
||||
private:
|
||||
void destroyResource(CWLDataDeviceManagerResource* resource);
|
||||
void destroyResource(CWLDataDeviceResource* resource);
|
||||
|
Reference in New Issue
Block a user