$NetBSD: patch-ag,v 1.8 2005/05/31 14:05:57 rillig Exp $

Needed for Sun C++ 5.6 on Solaris.

--- src/wmclient.cc.orig	Tue May 31 13:07:11 2005
+++ src/wmclient.cc	Tue May 31 13:07:29 2005
@@ -599,7 +599,7 @@ void YFrameClient::setWindowTitle(const 
         int count;
         char ** strings(NULL);
 
-        if (XmbTextPropertyToTextList(xapp->display(), &title,
+        if (XmbTextPropertyToTextList(xapp->display(), const_cast<XTextProperty *>(&title),
                                       &strings, &count) >= 0 &&
             count > 0 && strings[0])
             setWindowTitle((const char *)strings[0]);
@@ -617,7 +617,7 @@ void YFrameClient::setIconTitle(const XT
         int count;
         char ** strings(NULL);
 
-        if (XmbTextPropertyToTextList(xapp->display(), &title,
+        if (XmbTextPropertyToTextList(xapp->display(), const_cast<XTextProperty *>(&title),
                                       &strings, &count) >= 0 &&
             count > 0 && strings[0])
             setIconTitle((const char *)strings[0]);
