Implement support for size hints (including test case)
This commit is contained in:
@ -261,6 +261,9 @@ int main(int argc, char *argv[]) {
|
||||
/* Watch WM_NAME (title of the window encoded in COMPOUND_TEXT) */
|
||||
xcb_watch_wm_name(&prophs, 128, handle_windowname_change_legacy, NULL);
|
||||
|
||||
/* Watch WM_NORMAL_HINTS (aspect ratio, size increments, …) */
|
||||
xcb_property_set_handler(&prophs, WM_NORMAL_HINTS, UINT_MAX, handle_normal_hints, NULL);
|
||||
|
||||
/* Set up the atoms we support */
|
||||
xcb_change_property(conn, XCB_PROP_MODE_REPLACE, root, atoms[_NET_SUPPORTED], ATOM, 32, 7, atoms);
|
||||
/* Set up the window manager’s name */
|
||||
|
Reference in New Issue
Block a user