Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Activate window from dock only on left click (and not on right).

  • Loading branch information...
commit 50b5a2d533870e0e95a948806034649559e2a3f4 1 parent db821b7
@MadFishTheOne MadFishTheOne authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 dockapplet.cpp
View
11 dockapplet.cpp
@@ -183,10 +183,13 @@ void DockItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
if(m_clients.isEmpty())
return;
- if(m_dockApplet->activeWindow() == m_clients[0]->handle())
- X11Support::minimizeWindow(m_clients[0]->handle());
- else
- X11Support::activateWindow(m_clients[0]->handle());
+ if(event->button() == Qt::LeftButton)
+ {
+ if(m_dockApplet->activeWindow() == m_clients[0]->handle())
+ X11Support::minimizeWindow(m_clients[0]->handle());
+ else
+ X11Support::activateWindow(m_clients[0]->handle());
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.