summaryrefslogtreecommitdiff
path: root/geometry.c
diff options
context:
space:
mode:
Diffstat (limited to 'geometry.c')
-rw-r--r--geometry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/geometry.c b/geometry.c
index 6a249de..9d73361 100644
--- a/geometry.c
+++ b/geometry.c
@@ -24,7 +24,7 @@
THE USE OR PERFORMANCE OF THIS SOFTWARE.
********************************************************/
-/* $XFree86: xc/programs/xkbcomp/geometry.c,v 1.5 2003/08/06 14:04:05 eich Exp $ */
+/* $XFree86: xc/programs/xkbcomp/geometry.c,v 1.6 2003/12/22 17:48:13 tsi Exp $ */
#include "xkbcomp.h"
#include "tokens.h"
@@ -438,8 +438,10 @@ DoodadInfo * dflt;
di->section= si;
if (si!=NULL) {
di->priority= si->nextDoodadPriority++;
+#if XkbGeomMaxPriority < 255
if (si->nextDoodadPriority>XkbGeomMaxPriority)
si->nextDoodadPriority= XkbGeomMaxPriority;
+#endif
}
else {
di->priority= info->nextPriority++;