Use XCB backend
This commit is contained in:
parent
456f9fb6e6
commit
33cd402ae9
10 changed files with 80 additions and 131 deletions
|
@ -40,7 +40,6 @@ import Graphics.Rendering.Pango.Layout
|
|||
import Graphics.Rendering.Pango.Font
|
||||
|
||||
import Graphics.XHB
|
||||
import Graphics.XHB.Connection
|
||||
import Graphics.XHB.Gen.Xproto
|
||||
|
||||
import Codec.Binary.UTF8.String
|
||||
|
@ -625,7 +624,7 @@ getWindowGeometry x11 window =
|
|||
fi :: (Integral a, Num b) => a -> b
|
||||
fi = fromIntegral
|
||||
|
||||
showWindow :: ConnectionClass c r => c -> Atoms -> WINDOW -> IO Bool
|
||||
showWindow :: ConnectionClass c => c -> Atoms -> WINDOW -> IO Bool
|
||||
showWindow conn atoms window = do
|
||||
states <- liftM (map (fromXid . toXid) . fromMaybe []) $ getProperty32 conn window (atom_NET_WM_STATE atoms)
|
||||
transientFor <- liftM (map fromIntegral . fromMaybe []) $ getProperty32 conn window (atomWM_TRANSIENT_FOR atoms)
|
||||
|
|
Reference in a new issue