mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
autod events
This commit is contained in:
parent
92492c3ffe
commit
49cc9c34dd
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ void Events::eventLeave(xcb_generic_event_t* event) {
|
|||
}
|
||||
|
||||
void Events::eventDestroy(xcb_generic_event_t* event) {
|
||||
const xcb_destroy_notify_event_t* E = reinterpret_cast<xcb_destroy_notify_event_t*>(event);
|
||||
const auto E = reinterpret_cast<xcb_destroy_notify_event_t*>(event);
|
||||
xcb_kill_client(WindowManager::DisplayConnection, E->window);
|
||||
|
||||
// fix last window
|
||||
|
@ -31,7 +31,7 @@ void Events::eventDestroy(xcb_generic_event_t* event) {
|
|||
}
|
||||
|
||||
void Events::eventMapWindow(xcb_generic_event_t* event) {
|
||||
const xcb_map_request_event_t* E = reinterpret_cast<xcb_map_request_event_t*>(event);
|
||||
const auto E = reinterpret_cast<xcb_map_request_event_t*>(event);
|
||||
|
||||
// Map the window
|
||||
xcb_map_window(WindowManager::DisplayConnection, E->window);
|
||||
|
|
Loading…
Reference in a new issue