implement configure requests, adapt testcase
testcase does not pass 100% due to clients not being reparented correctly yet.
This commit is contained in:
@ -129,4 +129,12 @@ int con_orientation(Con *con);
|
||||
*/
|
||||
Con *con_next_focused(Con *con);
|
||||
|
||||
/*
|
||||
* Returns a "relative" Rect which contains the amount of pixels that need to
|
||||
* be added to the original Rect to get the final position (obviously the
|
||||
* amount of pixels for normal, 1pixel and borderless are different).
|
||||
*
|
||||
*/
|
||||
Rect con_border_style_rect(Con *con);
|
||||
|
||||
#endif
|
||||
|
@ -79,6 +79,7 @@ int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_n
|
||||
*/
|
||||
int handle_screen_change(void *prophs, xcb_connection_t *conn,
|
||||
xcb_generic_event_t *e);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Configure requests are received when the application wants to resize
|
||||
@ -90,7 +91,7 @@ int handle_screen_change(void *prophs, xcb_connection_t *conn,
|
||||
*/
|
||||
int handle_configure_request(void *prophs, xcb_connection_t *conn,
|
||||
xcb_configure_request_event_t *event);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Our window decorations were unmapped. That means, the window will be killed
|
||||
* now, so we better clean up before.
|
||||
|
@ -37,6 +37,7 @@ while (0)
|
||||
int min(int a, int b);
|
||||
int max(int a, int b);
|
||||
bool rect_contains(Rect rect, uint32_t x, uint32_t y);
|
||||
Rect rect_add(Rect a, Rect b);
|
||||
|
||||
/**
|
||||
* Updates *destination with new_value and returns true if it was changed or false
|
||||
|
Reference in New Issue
Block a user