openbsd-ports/x11/olvwm/patches/patch-properties_c
2004-01-28 20:58:53 +00:00

26 lines
823 B
Plaintext

$OpenBSD: patch-properties_c,v 1.1 2004/01/28 20:58:54 naddy Exp $
--- properties.c.orig 1994-01-13 22:36:13.000000000 +0100
+++ properties.c 2004-01-28 21:49:10.000000000 +0100
@@ -63,8 +63,8 @@ extern Atom AtomRightFooter;
extern Atom AtomDecorIMStatus;
extern Atom AtomLeftIMStatus;
extern Atom AtomRightIMStatus;
-extern Atom AtomCompoundText;
#endif
+extern Atom AtomCompoundText;
/***************************************************************************
* GetWindowProperty
@@ -147,8 +147,9 @@ propGetTextProp(dpy,win,property,text)
}
#else
- if (textProp.encoding == XA_STRING &&
- textProp.format == 8) {
+ if ((textProp.encoding == XA_STRING ||
+ textProp.encoding == AtomCompoundText) &&
+ textProp.format == 8) {
*text = MemNewText(textProp.value);
ret = True;
} else {