From f1e0ec82cb868c57e12c27cb6afaf23012f84589 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Thu, 24 Aug 2000 12:44:18 +0000 Subject: [PATCH] default icon "x" if there is no icon svn path=/trunk/kdebase/kwin/; revision=61836 --- client.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.cpp b/client.cpp index 95d5c8b373..662a2ecbf4 100644 --- a/client.cpp +++ b/client.cpp @@ -20,6 +20,7 @@ Copyright (C) 1999, 2000 Matthias Ettrich #include #include #include +#include #include "workspace.h" #include "client.h" #include "events.h" @@ -2530,6 +2531,8 @@ NoBorderClient::~NoBorderClient() QPixmap * kwin_get_menu_pix_hack() { static QPixmap p; + if ( p.isNull() ) + p = SmallIcon( "bx2" ); return &p; }