[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeartwork/kwin-styles/icewm
From:       Aaron J. Seigo <aseigo () olympusproject ! org>
Date:       2003-07-08 21:05:45
[Download RAW message or body]

CVS commit by aseigo: 

since IceWM does double-click-on-menu-is-close emulate this behaviour
as we do with other emulation styles. i AM closing BR#56922


  M +115 -103  icewm.cpp   1.27


--- kdeartwork/kwin-styles/icewm/icewm.cpp  #1.26:1.27
@@ -1356,4 +1356,16 @@ Client::MousePosition IceWMClient::mouse
 void IceWMClient::menuButtonPressed()
 {
+        static QTime t;
+        static IceWMClient* lastClient = NULL;
+        bool dbl = ( lastClient == this && t.elapsed() <= QApplication::doubleClickInterval());
+        lastClient = this;
+        t.start();
+
+        if (dbl)
+        {
+                closeWindow();
+                return;
+    }
+
         QPoint menuPoint ( button[BtnSysMenu]->rect().bottomLeft() );
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic