summaryrefslogtreecommitdiff
path: root/gdk/gdkinternals.h
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2014-07-11 16:42:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-07-13 15:35:23 -0400
commitfc6e2cc4b27403707bf2a9f4717442842914e626 (patch)
tree5d911997ef8c1ba99f257ab43198ec8fc4bc9ddc /gdk/gdkinternals.h
parentcef6f34fb7585fc423ec999822d515d6da0e6d6f (diff)
downloadgtk+-fc6e2cc4b27403707bf2a9f4717442842914e626.tar.gz
Handle resolution changes in the GDK backend code
gdk_x11_display_set_window_scale() affects the interpretation of the Xft/DPI XSETTING - it is substituted inside GDK with the value of Gdk/UnscaledDPI xsetting. However, this change is not propagated to GTK+ and from GTK+ back to gdk_screen_set_resolution() until the main loop is run. Fix this by handling the screen resolution directly in gdk/x11. This requires duplication of code between GDK and GTK+ since we still have to handle DPI in GTK+ in the case that GdkSettings:gtk-xft-dpi is set by the application. https://bugzilla.gnome.org/show_bug.cgi?id=733076
Diffstat (limited to 'gdk/gdkinternals.h')
-rw-r--r--gdk/gdkinternals.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index a2c4e53a51..f58ccb0084 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -345,6 +345,8 @@ gboolean _gdk_window_update_viewable (GdkWindow *window);
void _gdk_window_process_updates_recurse (GdkWindow *window,
cairo_region_t *expose_region);
+void _gdk_screen_set_resolution (GdkScreen *screen,
+ gdouble dpi);
void _gdk_screen_close (GdkScreen *screen);
/*****************************************