summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Run/Exec.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-02-11 04:40:34 +0000
committerjao <jao@gnu.org>2025-02-11 04:40:34 +0000
commit298663bc0140a2b4877ec64b444b57521fb01716 (patch)
treea8b263627d2ccb74287d4166556a83306d9af7f8 /src/Xmobar/Run/Exec.hs
parent7390d759240785f660cbdb0ca55898732aa12c98 (diff)
downloadxmobar-298663bc0140a2b4877ec64b444b57521fb01716.tar.gz
xmobar-298663bc0140a2b4877ec64b444b57521fb01716.tar.bz2
prototype for onClick method in Exec
Diffstat (limited to 'src/Xmobar/Run/Exec.hs')
-rw-r--r--src/Xmobar/Run/Exec.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Xmobar/Run/Exec.hs b/src/Xmobar/Run/Exec.hs
index 1879361..e5c5c8c 100644
--- a/src/Xmobar/Run/Exec.hs
+++ b/src/Xmobar/Run/Exec.hs
@@ -21,6 +21,7 @@ module Xmobar.Run.Exec (Exec (..), tenthSeconds, doEveryTenthSeconds) where
import Prelude
import Data.Char
+import Data.Word (Word32)
import Xmobar.Run.Timer (doEveryTenthSeconds, tenthSeconds)
import Xmobar.System.Signal
@@ -37,3 +38,5 @@ class Show e => Exec e where
where go = doEveryTenthSeconds (rate e) $ run e >>= cb
trigger :: e -> (Maybe SignalType -> IO ()) -> IO ()
trigger _ sh = sh Nothing
+ onClick :: e -> Word32 -> IO ()
+ onClick _ _ = return ()