summaryrefslogtreecommitdiff
path: root/src/ui/ui.c
diff options
context:
space:
mode:
authorMartin Wimpress <[email protected]>2017-08-11 15:10:56 +0100
committerGitHub <[email protected]>2017-08-11 15:10:56 +0100
commitd051953c1412ced4a140f7f4253c823bbe358165 (patch)
tree6dd385ed6aaf4270b7253a41da5249bf7808e870 /src/ui/ui.c
parented1a6302c87c6070bbec549ec36c5b56c12a6564 (diff)
downloadmarco-d051953c1412ced4a140f7f4253c823bbe358165.tar.bz2
marco-d051953c1412ced4a140f7f4253c823bbe358165.tar.xz
Forces a window scale of 1 for the window manager, instead of using the default or user configured scale. Closes #335 (#336)
Diffstat (limited to 'src/ui/ui.c')
-rw-r--r--src/ui/ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/ui.c b/src/ui/ui.c
index 767f72b3..5af02ae6 100644
--- a/src/ui/ui.c
+++ b/src/ui/ui.c
@@ -62,6 +62,11 @@ void meta_ui_init(int* argc, char*** argv)
{
meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL));
}
+
+ /* We need to be able to fully trust that the window and monitor sizes
+ * that GDK reports corresponds to the X ones, so we disable the automatic
+ * scale handling */
+ gdk_x11_display_set_window_scale (gdk_display_get_default (), 1);
}
Display* meta_ui_get_display(void)