• Owen W. Taylor's avatar
    Handle resolution changes in the GDK backend code · fc6e2cc4
    Owen W. Taylor authored
    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.
gdkscreenprivate.h 4.87 KB