[gnome-shell] run-js-test: fix running in hi-dpi mode
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] run-js-test: fix running in hi-dpi mode
- Date: Thu, 30 Jun 2016 18:18:31 +0000 (UTC)
commit c4584c20dc6c8a91ed3df31230c2ebb3e24cb803
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Oct 27 15:51:13 2015 -0400
run-js-test: fix running in hi-dpi mode
src/run-js-test.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/run-js-test.c b/src/run-js-test.c
index b90c0b6..bd76d95 100644
--- a/src/run-js-test.c
+++ b/src/run-js-test.c
@@ -59,6 +59,8 @@ main(int argc, char **argv)
gsize len;
int code;
+ gdk_set_allowed_backends("x11");
+
gtk_init (&argc, &argv);
clutter_x11_set_display (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()));
@@ -66,6 +68,9 @@ main(int argc, char **argv)
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
return 1;
+ g_object_set (clutter_settings_get_default (), "window-scaling-factor", 1, NULL);
+ gdk_x11_display_set_window_scale (gdk_display_get_default (), 1);
+
context = g_option_context_new (NULL);
/* pass unknown through to the JS script */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]