diff --git a/data/skins/default/skin.xml b/data/skins/default/skin.xml
index a521fc960..3a8093050 100644
--- a/data/skins/default/skin.xml
+++ b/data/skins/default/skin.xml
@@ -232,7 +232,7 @@
-
+
@@ -659,7 +659,7 @@
diff --git a/src/app/ui/tabs.cpp b/src/app/ui/tabs.cpp
index f567cce1d..d1cd017d2 100644
--- a/src/app/ui/tabs.cpp
+++ b/src/app/ui/tabs.cpp
@@ -246,16 +246,19 @@ bool Tabs::onProcessMessage(Message* msg)
if (m_delegate && m_selected && m_selected == m_hot) {
if (m_hotCloseButton && m_clickedCloseButton) {
- m_clickedCloseButton = false;
- invalidate();
-
m_delegate->clickClose(this, m_selected->view);
}
else if (!mouseMsg->left()) {
m_delegate->clickTab(this, m_selected->view, mouseMsg->buttons());
}
}
+
releaseMouse();
+
+ if (m_clickedCloseButton) {
+ m_clickedCloseButton = false;
+ invalidate();
+ }
}
return true;