X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fprop.c;h=40ae6ef299b5d6af4272fe0b85adf7e40c774cbf;hb=c6b22725640c2c1ab1023996807e750a11bd72f8;hp=4d366a59c3026c37212cbde43ef4ecd736da72e4;hpb=a6aaabe62c3651169dda9a1a34bcec64dad4ee92;p=chaz%2Fopenbox diff --git a/openbox/prop.c b/openbox/prop.c index 4d366a59..40ae6ef2 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -37,7 +37,7 @@ void prop_startup() CREATE(utf8, "UTF8_STRING"); CREATE(manager, "MANAGER"); - + CREATE(wm_colormap_windows, "WM_COLORMAP_WINDOWS"); CREATE(wm_protocols, "WM_PROTOCOLS"); CREATE(wm_state, "WM_STATE"); @@ -49,6 +49,8 @@ void prop_startup() CREATE(wm_class, "WM_CLASS"); CREATE(wm_window_role, "WM_WINDOW_ROLE"); CREATE(wm_client_machine, "WM_CLIENT_MACHINE"); + CREATE(wm_command, "WM_COMMAND"); + CREATE(wm_client_leader, "WM_CLIENT_LEADER"); CREATE(motif_wm_hints, "_MOTIF_WM_HINTS"); CREATE(sm_client_id, "SM_CLIENT_ID"); @@ -73,6 +75,8 @@ void prop_startup() CREATE(net_close_window, "_NET_CLOSE_WINDOW"); CREATE(net_wm_moveresize, "_NET_WM_MOVERESIZE"); CREATE(net_moveresize_window, "_NET_MOVERESIZE_WINDOW"); + CREATE(net_request_frame_extents, "_NET_REQUEST_FRAME_EXTENTS"); + CREATE(net_restack_window, "_NET_RESTACK_WINDOW"); CREATE(net_startup_id, "_NET_STARTUP_ID"); @@ -90,6 +94,7 @@ void prop_startup() /* CREATE(net_wm_pid, "_NET_WM_PID"); */ CREATE(net_wm_allowed_actions, "_NET_WM_ALLOWED_ACTIONS"); CREATE(net_wm_user_time, "_NET_WM_USER_TIME"); +/* CREATE(net_wm_user_time_window, "_NET_WM_USER_TIME_WINDOW"); */ CREATE(kde_net_wm_frame_strut, "_KDE_NET_WM_FRAME_STRUT"); CREATE(net_frame_extents, "_NET_FRAME_EXTENTS"); @@ -130,6 +135,9 @@ void prop_startup() CREATE(net_wm_action_fullscreen, "_NET_WM_ACTION_FULLSCREEN"); CREATE(net_wm_action_change_desktop, "_NET_WM_ACTION_CHANGE_DESKTOP"); CREATE(net_wm_action_close, "_NET_WM_ACTION_CLOSE"); + CREATE(net_wm_action_above, "_NET_WM_ACTION_ABOVE"); + CREATE(net_wm_action_below, "_NET_WM_ACTION_BELOW"); + CREATE(net_wm_state_modal, "_NET_WM_STATE_MODAL"); /* CREATE(net_wm_state_sticky, "_NET_WM_STATE_STICKY");*/ CREATE(net_wm_state_maximized_vert, "_NET_WM_STATE_MAXIMIZED_VERT"); @@ -142,7 +150,7 @@ void prop_startup() CREATE(net_wm_state_above, "_NET_WM_STATE_ABOVE"); CREATE(net_wm_state_below, "_NET_WM_STATE_BELOW"); CREATE(net_wm_state_demands_attention, "_NET_WM_STATE_DEMANDS_ATTENTION"); - + prop_atoms.net_wm_state_add = 1; prop_atoms.net_wm_state_remove = 0; prop_atoms.net_wm_state_toggle = 2; @@ -163,9 +171,10 @@ void prop_startup() */ CREATE(openbox_pid, "_OPENBOX_PID"); - CREATE(openbox_config, "_OPENBOX_CONFIG"); - CREATE(openbox_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); - CREATE(openbox_control, "_OB_CONTROL"); + CREATE(ob_theme, "_OB_THEME"); + CREATE(ob_wm_action_undecorate, "_OB_WM_ACTION_UNDECORATE"); + CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); + CREATE(ob_control, "_OB_CONTROL"); } #include @@ -326,7 +335,7 @@ gboolean prop_get_strings_locale(Window win, Atom prop, gchar ***ret) if (get_all(win, prop, prop_atoms.string, 8, (guchar**)&raw, &num)) { p = raw; - while (p < raw + num - 1) { + while (p < raw + num) { ++count; strs = g_slist_append(strs, p); p += strlen(p) + 1; /* next string */ @@ -353,7 +362,7 @@ gboolean prop_get_string_utf8(Window win, Atom prop, gchar **ret) gchar *raw; gchar *str; guint num; - + if (get_all(win, prop, prop_atoms.utf8, 8, (guchar**)&raw, &num)) { str = g_strndup(raw, num); /* grab the first string from the list */ g_free(raw); @@ -375,7 +384,7 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, gchar ***ret) if (get_all(win, prop, prop_atoms.utf8, 8, (guchar**)&raw, &num)) { p = raw; - while (p < raw + num - 1) { + while (p < raw + num) { ++count; strs = g_slist_append(strs, p); p += strlen(p) + 1; /* next string */