diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2024-08-04 17:31:56 +0200 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2024-08-04 17:31:56 +0200 |
| commit | 0e1add6fae63eb51c5f73caf4dd42838ec955a86 (patch) | |
| tree | b8227332daef96f5e5562db35ab8e368e6f347a3 /protocols | |
| parent | f677b43111622459853e3906c6cc028d94313e69 (diff) | |
implement signal handling
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/Wayland/Protocols/Core/WLOutput.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/Wayland/Protocols/Core/WLOutput.hs b/protocols/Wayland/Protocols/Core/WLOutput.hs index f943169..2989fe5 100644 --- a/protocols/Wayland/Protocols/Core/WLOutput.hs +++ b/protocols/Wayland/Protocols/Core/WLOutput.hs @@ -12,13 +12,13 @@ module Wayland.Protocols.Core.WLOutput ) where import Data.Data (Typeable) -import Wayland.Server (ResourceClass(..), ObjectID) +import Wayland.Server (ResourceClass(..), RequestClass(..), ObjectID) newtype Handle = Handle ObjectID deriving (Show, Eq, Ord) instance ResourceClass Handle where - type ResourceEvent Handle = Event + type ResourceEvent Handle = Event type ResourceRequest Handle = Request objectID (Handle h) = h interface _ = undefined @@ -59,6 +59,8 @@ data Request = ReqRelease Handle deriving (Typeable, Show) +instance RequestClass Request + data Event = EvGeometry Geometry | EvMode Mode |
