kranewm

An ICCCM & EWMH compliant X11 reparenting, dynamic window manager, written in C++
git clone git://git.deurzen.net/kranewm
Log | Files | Refs | LICENSE

message.hh (871B)


      1 #ifndef __WINSYS_MESSAGE_H_GUARD__
      2 #define __WINSYS_MESSAGE_H_GUARD__
      3 
      4 #include "common.hh"
      5 #include "geometry.hh"
      6 #include "input.hh"
      7 #include "window.hh"
      8 
      9 #include <string>
     10 #include <variant>
     11 #include <deque>
     12 
     13 namespace winsys
     14 {
     15 
     16     struct CommandMessage final
     17     {
     18         std::deque<std::string> args;
     19     };
     20 
     21     struct ConfigMessage final
     22     {
     23         std::deque<std::string> args;
     24     };
     25 
     26     struct WindowMessage final
     27     {
     28         std::deque<std::string> args;
     29     };
     30 
     31     struct WorkspaceMessage final
     32     {
     33         std::deque<std::string> args;
     34     };
     35 
     36     struct QueryMessage final
     37     {
     38         std::deque<std::string> args;
     39     };
     40 
     41     typedef std::variant<
     42         std::monostate,
     43         CommandMessage,
     44         ConfigMessage,
     45         WindowMessage,
     46         WorkspaceMessage,
     47         QueryMessage
     48     > Message;
     49 
     50 }
     51 
     52 #endif//__WINSYS_MESSAGE_H_GUARD__