mirror of
https://github.com/xmonad/xmonad.git
synced 2025-05-19 08:30:21 -07:00
Flatten module hierarchy
This commit is contained in:
parent
99ef0175d2
commit
07ee2a19cd
@ -1,6 +1,6 @@
|
|||||||
{-# OPTIONS_GHC -fglasgow-exts #-}
|
{-# OPTIONS_GHC -fglasgow-exts #-}
|
||||||
|
|
||||||
module Thunk.Wm where
|
module Wm where
|
||||||
|
|
||||||
import Data.Sequence
|
import Data.Sequence
|
||||||
import Control.Monad.State
|
import Control.Monad.State
|
@ -1,4 +1,4 @@
|
|||||||
module Thunk.XlibExtras where
|
module XlibExtras where
|
||||||
|
|
||||||
import Graphics.X11.Xlib
|
import Graphics.X11.Xlib
|
||||||
import Graphics.X11.Xlib.Types
|
import Graphics.X11.Xlib.Types
|
@ -12,7 +12,7 @@ build-depends: base >= 2.0, X11, unix, mtl
|
|||||||
executable: thunk
|
executable: thunk
|
||||||
main-is: thunk.hs
|
main-is: thunk.hs
|
||||||
extensions: ForeignFunctionInterface
|
extensions: ForeignFunctionInterface
|
||||||
other-modules: Thunk.XlibExtras
|
other-modules: XlibExtras
|
||||||
ghc-options: -O
|
ghc-options: -O
|
||||||
include-dirs: include
|
include-dirs: include
|
||||||
-- OpenBSD:
|
-- OpenBSD:
|
||||||
|
5
thunk.hs
5
thunk.hs
@ -10,8 +10,9 @@ import System.IO
|
|||||||
import Graphics.X11.Xlib
|
import Graphics.X11.Xlib
|
||||||
import System.Process (runCommand)
|
import System.Process (runCommand)
|
||||||
import System.Exit
|
import System.Exit
|
||||||
import Thunk.Wm
|
|
||||||
import Thunk.XlibExtras
|
import Wm
|
||||||
|
import XlibExtras
|
||||||
|
|
||||||
handler :: Event -> Wm ()
|
handler :: Event -> Wm ()
|
||||||
handler (MapRequestEvent {window = w}) = manage w
|
handler (MapRequestEvent {window = w}) = manage w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user