Implement handling the size hints so that aspect ratio is used correctly, fix rendering on stacks
This commit is contained in:
@ -204,6 +204,11 @@ struct Client {
|
||||
/* x, y, width, height of the child (relative to its frame) */
|
||||
Rect child_rect;
|
||||
|
||||
/* contains the size calculated from the hints set by the window or 0 if the client
|
||||
did not send any hints */
|
||||
int proportional_height;
|
||||
int proportional_width;
|
||||
|
||||
/* Height which was determined by reading the _NET_WM_STRUT_PARTIAL top/bottom of the screen
|
||||
reservation */
|
||||
int desired_height;
|
||||
|
@ -22,5 +22,7 @@ int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state,
|
||||
int handle_expose_event(void *data, xcb_connection_t *conn, xcb_expose_event_t *event);
|
||||
int handle_client_message(void *data, xcb_connection_t *conn, xcb_client_message_event_t *event);
|
||||
int window_type_handler(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window, xcb_atom_t atom, xcb_get_property_reply_t *property);
|
||||
int handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window,
|
||||
xcb_atom_t name, xcb_get_property_reply_t *reply);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user