#pragma once #include "config.hpp" #include #include #include #ifdef ENABLE_DAMAGE_EXT #include #endif #ifdef ENABLE_RANDR_EXT #include #endif #ifdef ENABLE_RENDER_EXT #include #endif #include #include "common.hpp" #include "x11/connection.hpp" LEMONBUDDY_NS // xpp types {{{ class connection; using registry = xpp::event::registry; using atom = xpp::atom; using colormap = xpp::colormap; using cursor = xpp::cursor; using drawable = xpp::drawable; using font = xpp::font; using gcontext = xpp::gcontext; using pixmap = xpp::pixmap; // }}} namespace evt { // window focus events {{{ using focus_in = xpp::x::event::focus_in; using focus_out = xpp::x::event::focus_out; // }}} // cursor events {{{ using enter_notify = xpp::x::event::enter_notify; using leave_notify = xpp::x::event::leave_notify; using motion_notify = xpp::x::event::motion_notify; // }}} // keyboard events {{{ using button_press = xpp::x::event::button_press; using button_release = xpp::x::event::button_release; using key_press = xpp::x::event::key_press; using key_release = xpp::x::event::key_release; using keymap_notify = xpp::x::event::keymap_notify; // }}} // render events {{{ using circulate_notify = xpp::x::event::circulate_notify; using circulate_request = xpp::x::event::circulate_request; using colormap_notify = xpp::x::event::colormap_notify; using configure_notify = xpp::x::event::configure_notify; using configure_request = xpp::x::event::configure_request; using create_notify = xpp::x::event::create_notify; using destroy_notify = xpp::x::event::destroy_notify; using expose = xpp::x::event::expose; using graphics_exposure = xpp::x::event::graphics_exposure; using gravity_notify = xpp::x::event::gravity_notify; using map_notify = xpp::x::event::map_notify; using map_request = xpp::x::event::map_request; using mapping_notify = xpp::x::event::mapping_notify; using no_exposure = xpp::x::event::no_exposure; using reparent_notify = xpp::x::event::reparent_notify; using resize_request = xpp::x::event::resize_request; using unmap_notify = xpp::x::event::unmap_notify; using visibility_notify = xpp::x::event::visibility_notify; // }}} // data events {{{ using client_message = xpp::x::event::client_message; using ge_generic = xpp::x::event::ge_generic; using property_notify = xpp::x::event::property_notify; // }}} // selection events {{{ using selection_clear = xpp::x::event::selection_clear; using selection_notify = xpp::x::event::selection_notify; using selection_request = xpp::x::event::selection_request; // }}} #ifdef ENABLE_RANDR_EXT using randr_notify = xpp::randr::event::notify; using randr_screen_change_notify = xpp::randr::event::screen_change_notify; #endif } LEMONBUDDY_NS_END