After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747856 - Export font LCD filter setting
Export font LCD filter setting
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: xsettings
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-04-14 14:42 UTC by Jan Alexander Steffens (heftig)
Modified: 2015-11-03 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
xsettings: Export cursor size to X resources (1.02 KB, patch)
2015-04-14 14:43 UTC, Jan Alexander Steffens (heftig)
committed Details | Review
xsettings: Export cursor theme (3.15 KB, patch)
2015-04-14 14:43 UTC, Jan Alexander Steffens (heftig)
none Details | Review
xsettings: Export font LCD filter setting (5.97 KB, patch)
2015-04-14 14:43 UTC, Jan Alexander Steffens (heftig)
rejected Details | Review
xsettings: notify on cursor theme changes (1.02 KB, patch)
2015-10-12 09:08 UTC, Marco Trevisan (Treviño)
none Details | Review
xsettings: Export cursor theme (3.95 KB, patch)
2015-10-12 17:33 UTC, Jan Alexander Steffens (heftig)
committed Details | Review

Description Jan Alexander Steffens (heftig) 2015-04-14 14:42:11 UTC
I've been missing some settings from xrdb. Patches follow.
Comment 1 Jan Alexander Steffens (heftig) 2015-04-14 14:43:07 UTC
Created attachment 301555 [details] [review]
xsettings: Export cursor size to X resources
Comment 2 Jan Alexander Steffens (heftig) 2015-04-14 14:43:28 UTC
Created attachment 301556 [details] [review]
xsettings: Export cursor theme
Comment 3 Jan Alexander Steffens (heftig) 2015-04-14 14:43:48 UTC
Created attachment 301557 [details] [review]
xsettings: Export font LCD filter setting
Comment 4 Bastien Nocera 2015-04-14 14:47:49 UTC
(In reply to Jan Alexander Steffens (heftig) from comment #0)
> I've been missing some settings from xrdb. Patches follow.

Can you explain why you need those, and what might consume them?
Comment 5 Jan Alexander Steffens (heftig) 2015-04-14 18:35:07 UTC
The cursor size setting is consumed by Qt4, Qt5 and Tk. Without this setting they use 24x24 cursors.

I believe some non-GNOME window managers use the Xcursor.theme setting.

The LCD filter setting is consumed by Xft. The LCD filters apply some horizontal blurring in RGBA mode to soften color fringes. When this value isn't set in xrdb or fontconfig it defaults to lcdlegacy, a filter showing more fringing than lcddefault or lcdlight.

I pulled the Xft/Lcdfilter xsetting name from some XFCE code; GDK does not support this, so rendering to surfaces other than X pixmaps (where Xft gets used) is currently unaffected by this setting. (I notice that GdkWaylandScreen reads the org.gnome.settings-daemon.plugins.xsettings keys directly.)
Comment 6 Bastien Nocera 2015-04-15 09:12:33 UTC
Comment on attachment 301555 [details] [review]
xsettings: Export cursor size to X resources

Attachment 301555 [details] pushed as 5852428 - xsettings: Export cursor size to X resources
Comment 7 Bastien Nocera 2015-04-15 09:13:44 UTC
Review of attachment 301556 [details] [review]:

This needs references added to the patch, pointing to sources where other window managers might be consuming this information.
Comment 8 Bastien Nocera 2015-04-15 09:16:58 UTC
Review of attachment 301557 [details] [review]:

I would only push this if we had GTK+ consuming it, as it has an external API. Please file a bug against GTK+ so that this feature is used (or better, let's choose a better default for current machines).
Comment 9 Marco Trevisan (Treviño) 2015-10-12 09:08:20 UTC
Created attachment 313106 [details] [review]
xsettings: notify on cursor theme changes
Comment 10 Marco Trevisan (Treviño) 2015-10-12 09:42:57 UTC
This patch is also needed in order to get properly notified of theme changes.

In terms of WM using this, I'm not sure about the others, but compiz will use this, so having this upstream will be nice.
Comment 11 Marco Trevisan (Treviño) 2015-10-12 09:50:51 UTC
Also... libxcursor is expecting cursor theme to be there [1], so I guess it's just fine to have this upstream.

[1] http://cgit.freedesktop.org/xorg/lib/libXcursor/tree/src/display.c#n216
Comment 12 Bastien Nocera 2015-10-12 10:50:53 UTC
Review of attachment 313106 [details] [review]:

Given that we haven't merged the cursor theme patch, this is precipitate. Make sure Jan merges that changes in his patch.
Comment 13 Jan Alexander Steffens (heftig) 2015-10-12 17:33:14 UTC
Created attachment 313133 [details] [review]
xsettings: Export cursor theme

Integrated Marco's patch and comments about users of this setting. Thanks.
Comment 14 Marco Trevisan (Treviño) 2015-10-19 11:00:37 UTC
Review of attachment 313133 [details] [review]:

Looks good to me
Comment 15 Bastien Nocera 2015-10-19 15:55:52 UTC
Comment on attachment 313133 [details] [review]
xsettings: Export cursor theme

Attachment 313133 [details] pushed as af8a40c - xsettings: Export cursor theme
Comment 16 Bastien Nocera 2015-11-03 15:19:27 UTC
Review of attachment 301557 [details] [review]:

I won't be adding any more Xft related configurations in GNOME. In the long term, we want to use the default fontconfig configuration, which can do per-font configurations, eventually ask information from the toolkit as to whether a particular renderer is available to choose the settings that best match the device.

Given that, please discuss the change of default font LCD filtering upstream, with the fontconfig folks.

See also:
  https://bugzilla.gnome.org/show_bug.cgi?id=756204
  https://bugzilla.gnome.org/show_bug.cgi?id=757521
Comment 17 Bastien Nocera 2015-11-03 15:19:55 UTC
Marking as FIXED as the other patches were committed.