2
2
Author: Chad MILLER <chad.miller@canonical.com>
5
Index: beta.xenial/build/linux/system.gyp
5
Index: dev.xenial/build/linux/system.gyp
6
6
===================================================================
7
--- beta.xenial.orig/build/linux/system.gyp
8
+++ beta.xenial/build/linux/system.gyp
7
--- dev.xenial.orig/build/linux/system.gyp
8
+++ dev.xenial/build/linux/system.gyp
10
10
'g_settings_get_boolean',
11
11
'g_settings_get_int',
20
20
'libpci_functions': [
22
Index: beta.xenial/ui/views/views.gyp
23
===================================================================
24
--- beta.xenial.orig/ui/views/views.gyp
25
+++ beta.xenial/ui/views/views.gyp
22
Index: dev.xenial/ui/views/BUILD.gn
23
===================================================================
24
--- dev.xenial.orig/ui/views/BUILD.gn
25
+++ dev.xenial/ui/views/BUILD.gn
26
@@ -270,6 +270,7 @@ test("views_unittests") {
27
"//ui/events/devices",
28
"//ui/events/platform/x11",
30
+ "//build/linux:gio",
34
Index: dev.xenial/ui/views/views.gyp
35
===================================================================
36
--- dev.xenial.orig/ui/views/views.gyp
37
+++ dev.xenial/ui/views/views.gyp
28
40
'../../build/linux/system.gyp:x11',
29
41
'../../build/linux/system.gyp:xrandr',
30
42
+ '../../build/linux/system.gyp:gio',
31
43
'../events/devices/events_devices.gyp:events_devices',
32
'../events/platform/x11/x11_events_platform.gyp:x11_events_platform',
33
'../gfx/x/gfx_x11.gyp:gfx_x11',
34
Index: beta.xenial/ui/views/widget/desktop_aura/desktop_screen_x11.cc
44
'../events/devices/x11/events_devices_x11.gyp:events_devices_x11',
45
'../events/keycodes/events_keycodes.gyp:keycodes_x11',
46
Index: dev.xenial/ui/views/widget/desktop_aura/desktop_screen_x11.cc
35
47
===================================================================
36
--- beta.xenial.orig/ui/views/widget/desktop_aura/desktop_screen_x11.cc
37
+++ beta.xenial/ui/views/widget/desktop_aura/desktop_screen_x11.cc
48
--- dev.xenial.orig/ui/views/widget/desktop_aura/desktop_screen_x11.cc
49
+++ dev.xenial/ui/views/widget/desktop_aura/desktop_screen_x11.cc
39
51
#include <X11/extensions/Xrandr.h>
40
52
#include <X11/Xlib.h>
51
63
#include "base/logging.h"
52
@@ -282,6 +287,29 @@ std::vector<gfx::Display> DesktopScreenX
64
@@ -298,6 +303,29 @@ std::vector<gfx::Display> DesktopScreenX
53
65
return GetFallbackDisplayList();
79
91
bool has_work_area = false;
80
92
gfx::Rect work_area_in_pixels;
81
93
std::vector<int> value;
82
@@ -293,7 +321,7 @@ std::vector<gfx::Display> DesktopScreenX
94
@@ -309,7 +337,7 @@ std::vector<gfx::Display> DesktopScreenX
84
96
// As per-display scale factor is not supported right now,
85
97
// the X11 root window's scale factor is always used.
88
100
for (int i = 0; i < resources->noutput; ++i) {
89
101
RROutput output_id = resources->outputs[i];
90
102
gfx::XScopedPtr<XRROutputInfo,
91
@@ -319,7 +347,27 @@ std::vector<gfx::Display> DesktopScreenX
103
@@ -336,7 +364,27 @@ std::vector<gfx::Display> DesktopScreenX
92
104
gfx::Rect crtc_bounds(crtc->x, crtc->y, crtc->width, crtc->height);
93
105
gfx::Display display(display_id, crtc_bounds);