summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-15 03:49:28 +0000
committerDana Jansens <danakj@orodu.net>2007-06-15 03:49:28 +0000
commite3b9c8b6814aca2ca44b60517c2784178570fe52 (patch)
treee04ae24e7162703802982b1ad1f6e183e89f68ba
parent51fdd13fd1a445d5fa3c2d7aab356e7caaf2f902 (diff)
don't set the default icon on child windows, their parents will have an icon
-rw-r--r--openbox/client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c
index a128d9e6..50665375 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -2084,8 +2084,11 @@ void client_update_icons(ObClient *self)
/* set the default icon onto the window
in theory, this could be a race, but if a window doesn't set an icon
or removes it entirely, it's not very likely it is going to set one
- right away afterwards */
- if (self->nicons == 0) {
+ right away afterwards
+
+ if it has parents, then one of them will have an icon already
+ */
+ if (self->nicons == 0 && !self->parents) {
RrPixel32 *icon = ob_rr_theme->def_win_icon;
gulong *data;