From: Dana Jansens Date: Sun, 11 Mar 2007 00:59:13 +0000 (+0000) Subject: remove the kde icon hint, they use the EWMH icon now X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=bd19fd06db8905ef835109414314ef928370a7d7;p=chaz%2Fopenbox remove the kde icon hint, they use the EWMH icon now --- diff --git a/openbox/client.c b/openbox/client.c index fff9bdd5..27e63292 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1775,23 +1775,6 @@ void client_update_icons(ObClient *self) g_assert(i <= num); } - g_free(data); - } else if (PROP_GETA32(self->window, kwm_win_icon, - kwm_win_icon, &data, &num)) { - if (num == 2) { - self->nicons++; - self->icons = g_new(ObClientIcon, self->nicons); - xerror_set_ignore(TRUE); - if (!RrPixmapToRGBA(ob_rr_inst, - data[0], data[1], - &self->icons[self->nicons-1].width, - &self->icons[self->nicons-1].height, - &self->icons[self->nicons-1].data)) { - g_free(&self->icons[self->nicons-1]); - self->nicons--; - } - xerror_set_ignore(FALSE); - } g_free(data); } else { XWMHints *hints; diff --git a/openbox/event.c b/openbox/event.c index 2c243882..558872e8 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1110,11 +1110,8 @@ static void event_handle_client(ObClient *client, XEvent *e) b == prop_atoms.wm_icon_name)) { continue; } - if ((a == prop_atoms.net_wm_icon || - a == prop_atoms.kwm_win_icon) - && - (b == prop_atoms.net_wm_icon || - b == prop_atoms.kwm_win_icon)) + if (a == prop_atoms.net_wm_icon && + b == prop_atoms.net_wm_icon) continue; XPutBackEvent(ob_display, &ce); @@ -1148,8 +1145,7 @@ static void event_handle_client(ObClient *client, XEvent *e) else if (msgtype == prop_atoms.net_wm_strut) { client_update_strut(client); } - else if (msgtype == prop_atoms.net_wm_icon || - msgtype == prop_atoms.kwm_win_icon) { + else if (msgtype == prop_atoms.net_wm_icon) { client_update_icons(client); } else if (msgtype == prop_atoms.sm_client_id) { diff --git a/openbox/prop.c b/openbox/prop.c index 5d64202d..977dbe95 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -146,8 +146,6 @@ void prop_startup() CREATE(kde_wm_change_state, "_KDE_WM_CHANGE_STATE"); CREATE(kde_net_wm_window_type_override,"_KDE_NET_WM_WINDOW_TYPE_OVERRIDE"); - CREATE(kwm_win_icon, "KWM_WIN_ICON"); - CREATE(rootpmapid, "_XROOTPMAP_ID"); CREATE(esetrootid, "ESETROOT_PMAP_ID"); diff --git a/openbox/prop.h b/openbox/prop.h index 681b804e..2c36b624 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -158,8 +158,6 @@ typedef struct Atoms { Atom kde_wm_change_state; Atom kde_net_wm_window_type_override; - Atom kwm_win_icon; - Atom rootpmapid; Atom esetrootid;