GNOME Bugzilla – Bug 749256
clutter-backend-gdk: Only set setting on successful gdk_screen_get_setting call
Last modified: 2015-05-12 10:16:21 UTC
Created attachment 303251 [details] [review] clutter-backend-gdk: Only set setting on successful gdk_screen_get_setting call It could happen that gdk_screen_get_setting fails to retreive Gdk/WindowScalingFactor which leads to the following warnings when clutter_init is called: GLib-GObject-WARNING **: value "0" of type 'gint' is invalid or out of range for property 'window-scaling-factor' of type 'gint' GLib-GObject-WARNING **: value "0" of type 'gint' is invalid or out of range for property 'dnd-drag-threshold' of type 'gint' The following patch seems to fix the issue.
Review of attachment 303251 [details] [review]: Looks good. Please, push to master and to the clutter-1.22 branch.
(In reply to Emmanuele Bassi (:ebassi) from comment #1) > Review of attachment 303251 [details] [review] [review]: > > Looks good. Please, push to master and to the clutter-1.22 branch. I don't have the rights to commit to the clutter repository. Can you push it ?
Found this running unittests of cheese on Gentoo because we run unittests in Xvfb. Thanks Matthieu for the fix.
Done. Thanks for the patch! Attachment 303251 [details] pushed as 8aea8bc - clutter-backend-gdk: Only set setting on successful gdk_screen_get_setting call