+/*
+ * Handles the _MOTIF_WM_HINTS property of specifing window deocration settings.
+ *
+ */
+static bool handle_motif_hints_change(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window,
+ xcb_atom_t name, xcb_get_property_reply_t *prop) {
+ Con *con;
+ if ((con = con_by_window_id(window)) == NULL || con->window == NULL)
+ return false;
+
+ if (prop == NULL) {
+ prop = xcb_get_property_reply(conn, xcb_get_property_unchecked(conn,
+ false, window, A__MOTIF_WM_HINTS, XCB_GET_PROPERTY_TYPE_ANY, 0, 5 * sizeof(uint64_t)),
+ NULL);
+
+ if (prop == NULL)
+ return false;
+ }
+
+ border_style_t motif_border_style;
+ window_update_motif_hints(con->window, prop, &motif_border_style);
+
+ if (motif_border_style != con->border_style && motif_border_style != BS_NORMAL) {
+ DLOG("Update border style of con %p to %d\n", con, motif_border_style);
+ con_set_border_style(con, motif_border_style, con->current_border_width);
+
+ x_push_changes(croot);
+ }
+
+ return true;
+}
+