blob: d96b54f8bb9bc61a812bb4f3e076a6e79f620888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module Graphics.X11.Xlib.Atom.Extra where
import Graphics.X11.Types (Atom)
import Graphics.X11.Xlib.Atom (internAtom)
import Graphics.X11.Xlib.Display.Extra (withDefaultDisplay)
import System.IO.Unsafe (unsafePerformIO)
unsafeInternAtom :: String -> Bool -> Atom
unsafeInternAtom atomName onlyIfExists =
unsafePerformIO $ withDefaultDisplay $ \display ->
internAtom display atomName onlyIfExists
_WIN_WORKSPACE :: Atom
_WIN_WORKSPACE = unsafeInternAtom "_WIN_WORKSPACE" True
_WIN_WORKSPACE_NAMES :: Atom
_WIN_WORKSPACE_NAMES = unsafeInternAtom "_WIN_WORKSPACE_NAMES" True
_WM_NAME :: Atom
_WM_NAME = unsafeInternAtom "WM_NAME" True
|