summaryrefslogtreecommitdiffhomepage
path: root/src/Signal.hs
diff options
context:
space:
mode:
authorMarcin Mikołajczyk <marcinmikolajcz@gmail.com>2014-02-18 21:21:39 +0100
committerMarcin Mikołajczyk <marcinmikolajcz@gmail.com>2014-02-18 21:21:39 +0100
commitfc240b66c24b8d257299c9ccc8e51f30129e774c (patch)
tree83e2b21c07a3ac6a716c42a20e247437f35822eb /src/Signal.hs
parent0a9528f92cddd6b145be7e75142af2b1b2905877 (diff)
downloadxmobar-fc240b66c24b8d257299c9ccc8e51f30129e774c.tar.gz
xmobar-fc240b66c24b8d257299c9ccc8e51f30129e774c.tar.bz2
Add support for multiple actions per item, activated depending on mouse button clicked
Diffstat (limited to 'src/Signal.hs')
-rw-r--r--src/Signal.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Signal.hs b/src/Signal.hs
index 34d8cd7..a828db6 100644
--- a/src/Signal.hs
+++ b/src/Signal.hs
@@ -22,6 +22,7 @@ import Data.Typeable (Typeable)
import Control.Concurrent.STM
import Control.Exception hiding (handle)
import System.Posix.Signals
+import Graphics.X11.Types (Button)
import Graphics.X11.Xlib.Types (Position)
#ifdef DBUS
@@ -41,7 +42,7 @@ data SignalType = Wakeup
| Reveal Int
| Toggle Int
| TogglePersistent
- | Action Position
+ | Action Button Position
deriving (Read, Show)
#ifdef DBUS