aboutsummaryrefslogtreecommitdiffstats
path: root/src/xsettings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xsettings.c')
-rw-r--r--src/xsettings.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xsettings.c b/src/xsettings.c
index 0d9c9cadb27..83ca87ed0bd 100644
--- a/src/xsettings.c
+++ b/src/xsettings.c
@@ -627,7 +627,9 @@ init_gconf (void)
627#if defined (HAVE_GCONF) && defined (HAVE_XFT) 627#if defined (HAVE_GCONF) && defined (HAVE_XFT)
628 char *s; 628 char *s;
629 629
630#ifdef HAVE_G_TYPE_INIT
630 g_type_init (); 631 g_type_init ();
632#endif
631 gconf_client = gconf_client_get_default (); 633 gconf_client = gconf_client_get_default ();
632 s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL); 634 s = gconf_client_get_string (gconf_client, SYSTEM_MONO_FONT, NULL);
633 if (s) 635 if (s)
@@ -656,18 +658,10 @@ init_gconf (void)
656static void 658static void
657init_xsettings (struct x_display_info *dpyinfo) 659init_xsettings (struct x_display_info *dpyinfo)
658{ 660{
659 char sel[64];
660 Display *dpy = dpyinfo->display; 661 Display *dpy = dpyinfo->display;
661 662
662 BLOCK_INPUT; 663 BLOCK_INPUT;
663 664
664 sprintf (sel, "_XSETTINGS_S%d", XScreenNumberOfScreen (dpyinfo->screen));
665 dpyinfo->Xatom_xsettings_sel = XInternAtom (dpy, sel, False);
666 dpyinfo->Xatom_xsettings_prop = XInternAtom (dpy,
667 "_XSETTINGS_SETTINGS",
668 False);
669 dpyinfo->Xatom_xsettings_mgr = XInternAtom (dpy, "MANAGER", False);
670
671 /* Select events so we can detect client messages sent when selection 665 /* Select events so we can detect client messages sent when selection
672 owner changes. */ 666 owner changes. */
673 XSelectInput (dpy, dpyinfo->root_window, StructureNotifyMask); 667 XSelectInput (dpy, dpyinfo->root_window, StructureNotifyMask);