diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2008-03-29 11:38:34 +0100 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2008-03-29 11:38:34 +0100 |
commit | c111c1b01d6e772654fac7408bd624812397b999 (patch) | |
tree | 1e2582d3b2fb1f03f26c228dbc9d890eea3e510c /XUtil.hsc | |
parent | 220420553c4d82f9ad1466cb485d91a7dddd18f1 (diff) | |
download | xmobar-c111c1b01d6e772654fac7408bd624812397b999.tar.gz xmobar-c111c1b01d6e772654fac7408bd624812397b999.tar.bz2 |
Set _NET_WM_STRUT_PARTIAL instead of _NET_WM_STRUT and change mkUnmanageWindow to newWindow
darcs-hash:20080329103834-d6583-b2da6a8a6770e13a2d2598debea5e93e48eee713.gz
Diffstat (limited to 'XUtil.hsc')
-rw-r--r-- | XUtil.hsc | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -21,7 +21,7 @@ module XUtil , textWidth , printString , initColor - , mkUnmanagedWindow + , newWindow , nextEvent' , readFileSafe , hGetLineSafe @@ -38,7 +38,7 @@ import qualified Graphics.X11.Xlib as Xlib (textExtents, textWidth) import Graphics.X11.Xlib.Extras import System.Posix.Types (Fd(..)) import System.IO -#if defined XFT || defined UTF8 +#if defined XFT || defined UTF_8 import Foreign.C import qualified System.IO.UTF8 as UTF8 (readFile,hGetLine) #endif @@ -186,16 +186,8 @@ initColor' dpy c = (color_pixel . fst) `liftM` allocNamedColor dpy colormap c -- | Creates a window with the attribute override_redirect set to True. -- Windows Managers should not touch this kind of windows. -mkUnmanagedWindow :: Display - -> Screen - -> Window - -> Position - -> Position - -> Dimension - -> Dimension - -> Bool - -> IO Window -mkUnmanagedWindow dpy scr rw x y w h o = do +newWindow :: Display -> Screen -> Window -> Rectangle -> Bool -> IO Window +newWindow dpy scr rw (Rectangle x y w h) o = do let visual = defaultVisualOfScreen scr attrmask = cWOverrideRedirect allocaSetWindowAttributes $ |