screenedge: allow activating clients in drag and drop

In particular, this allows dragging onto autohide and dogde-window
panels.

BUG: 450579
This commit is contained in:
Yifan Zhu 2024-07-31 23:00:23 -07:00
parent 9d76423285
commit 7752db3a88

View file

@ -244,7 +244,7 @@ bool Edge::activatesForPointer() const
// Most actions do not handle drag and drop properly yet
// but at least allow "show desktop" and "application launcher".
if (waylandServer() && waylandServer()->seat()->isDragPointer()) {
if (!m_edges->isDesktopSwitching() && m_action != ElectricActionShowDesktop && m_action != ElectricActionApplicationLauncher) {
if (!m_edges->isDesktopSwitching() && m_action != ElectricActionNone && m_action != ElectricActionShowDesktop && m_action != ElectricActionApplicationLauncher) {
return false;
}
// Don't activate edge when a mouse button is pressed, except when