Skip to content

Instantly share code, notes, and snippets.

@bohoomil
Created August 17, 2014 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bohoomil/0cc7816c36ad570406cb to your computer and use it in GitHub Desktop.
Save bohoomil/0cc7816c36ad570406cb to your computer and use it in GitHub Desktop.
xfce4-settings patch by brebs (v.4.10.1)
https://bugzilla.xfce.org/show_bug.cgi?id=10633
diff -Naur a/dialogs/appearance-settings/main.c b/dialogs/appearance-settings/main.c
--- a/dialogs/appearance-settings/main.c 2013-05-05 18:12:54.000000000 +0200
+++ b/dialogs/appearance-settings/main.c 2014-08-18 00:33:21.970006145 +0200
@@ -227,9 +227,6 @@ cb_custom_dpi_check_button_toggled (GtkT
if (dpi <= 0)
dpi = compute_xsettings_dpi (GTK_WIDGET (custom_dpi_toggle));
- /* Apply the computed custom DPI value */
- xfconf_channel_set_int (xsettings_channel, "/Xft/DPI", dpi);
-
gtk_widget_set_sensitive (GTK_WIDGET (custom_dpi_spin), TRUE);
}
else
@@ -257,9 +254,6 @@ cb_custom_dpi_spin_button_changed (GtkSp
/* Custom DPI is turned on and the spin button has changed, so remember the value */
xfconf_channel_set_int (xsettings_channel, "/Xfce/LastCustomDPI", dpi);
}
-
- /* Tell xfsettingsd to apply the custom DPI value */
- xfconf_channel_set_int (xsettings_channel, "/Xft/DPI", dpi);
}
#ifdef ENABLE_SOUND_SETTINGS
diff -Naur a/xfsettingsd/xsettings.c b/xfsettingsd/xsettings.c
--- a/xfsettingsd/xsettings.c 2013-09-26 15:39:30.000000000 +0100
+++ b/xfsettingsd/xsettings.c 2014-01-12 19:08:25.152513803 +0000
@@ -947,14 +947,6 @@
{
screen = li->data;
- /* set the accurate dpi for this screen */
- if (notify->dpi_offset > 0)
- {
- dpi = xfce_xsettings_helper_screen_dpi (screen);
- needle = notify->buf + notify->dpi_offset;
- *(INT32 *)needle = dpi * 1024;
- }
-
XChangeProperty (screen->xdisplay, screen->window,
helper->xsettings_atom, helper->xsettings_atom,
8, PropModeReplace, notify->buf, notify->buf_len);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment