summaryrefslogtreecommitdiffhomepage
path: root/src/XUtil.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'src/XUtil.hsc')
-rw-r--r--src/XUtil.hsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XUtil.hsc b/src/XUtil.hsc
index 353d158..b1e885c 100644
--- a/src/XUtil.hsc
+++ b/src/XUtil.hsc
@@ -183,8 +183,8 @@ printString dpy drw fs@(Xft font) _ fc bc x y s = do
-- Windows Managers should not touch this kind of windows.
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
+ let visual = defaultVisualOfScreen scr
+ attrmask = if o then cWOverrideRedirect else 0
allocaSetWindowAttributes $
\attributes -> do
set_override_redirect attributes o