aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan2014-02-02 16:29:04 +0000
committerokan2014-02-02 16:29:04 +0000
commitb803e99634ca48acb240a6e5a67ab768a72159bc (patch)
treee14c9365928aec3a36165f787cf763744738dbcb /calmwm.c
parent7cf90fa84564259d6ef67cd63017a6cdec385f5a (diff)
downloadcwm-b803e99634ca48acb240a6e5a67ab768a72159bc.tar.gz
No need to store screen colormap and visual; rather just use the X
macros in the one place they are needed.
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index 5f8590e..cfee9ee 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: calmwm.c,v 1.88 2014/02/01 00:25:04 okan Exp $
+ * $OpenBSD: calmwm.c,v 1.89 2014/02/02 16:29:04 okan Exp $
*/
#include <sys/param.h>
@@ -162,7 +162,8 @@ x_teardown(void)
TAILQ_FOREACH(sc, &Screenq, entry) {
for (i = 0; i < CWM_COLOR_NITEMS; i++)
- XftColorFree(X_Dpy, sc->visual, sc->colormap,
+ XftColorFree(X_Dpy, DefaultVisual(X_Dpy, sc->which),
+ DefaultColormap(X_Dpy, sc->which),
&sc->xftcolor[i]);
XftDrawDestroy(sc->xftdraw);
XftFontClose(X_Dpy, sc->xftfont);