27 lines
825 B
C
27 lines
825 B
C
#pragma once
|
|
|
|
#include "Definitions.h"
|
|
|
|
BAN::ErrorOr<void> setup_client_conneciton(Client& client_info, const xConnClientPrefix& client_prefix);
|
|
BAN::ErrorOr<void> handle_packet(Client& client_info, BAN::ConstByteSpan packet);
|
|
|
|
void invalidate_window(WINDOW wid, int32_t x, int32_t y, int32_t w, int32_t h);
|
|
|
|
BAN::ErrorOr<void> send_configure_notify(WINDOW wid);
|
|
BAN::ErrorOr<void> send_exposure_events_recursive(WINDOW wid);
|
|
|
|
void update_cursor(WINDOW wid, int32_t x, int32_t y);
|
|
|
|
BAN::ErrorOr<void> destroy_window(Client& client_info, WINDOW wid);
|
|
|
|
WINDOW find_child_window(WINDOW wid, int32_t& x, int32_t& y);
|
|
|
|
xPoint get_window_position(WINDOW wid);
|
|
|
|
// random number with alpha 0 :D
|
|
static constexpr uint32_t COLOR_INVISIBLE = 0x00b205AF;
|
|
|
|
extern CARD16 g_keymask;
|
|
extern CARD16 g_butmask;
|
|
extern WINDOW g_focus_window;
|