summaryrefslogtreecommitdiff
path: root/src/xrdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xrdb.c')
-rw-r--r--src/xrdb.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xrdb.c b/src/xrdb.c
index 19ca21f9e02..6a769e3aa6c 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -314,6 +314,15 @@ get_user_db (display)
db = XrmGetFileDatabase (xdefault);
}
+#ifdef XlibSpecificationRelease
+#if XlibSpecificationRelease >= 5
+ /* Get the screen-specific resources too. */
+ xdefs = XScreenResourceString (DefaultScreenOfDisplay (display));
+ if (xdefs != NULL)
+ XrmMergeDatabases (XrmGetStringDatabase (xdefs), &db);
+#endif
+#endif
+
return db;
}