aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/chromium/chromium-no-mit-screensaver.patch
blob: 25ca29ac97785df469b13067e3cb6f7fc9893030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
--- chromium-17.0.942.0.orig/chrome/browser/idle_query_linux.cc
+++ chromium-17.0.942.0/chrome/browser/idle_query_linux.cc
@@ -4,30 +4,12 @@
 
 #include "chrome/browser/idle_query_linux.h"
 
-#include <X11/extensions/scrnsaver.h>
-#include "ui/base/x/x11_util.h"
-
 namespace browser {
 
 class IdleData {
  public:
-  IdleData() {
-    int event_base;
-    int error_base;
-    if (XScreenSaverQueryExtension(ui::GetXDisplay(), &event_base,
-                                   &error_base)) {
-      mit_info = XScreenSaverAllocInfo();
-    } else {
-      mit_info = NULL;
-    }
-  }
-
-  ~IdleData() {
-    if (mit_info)
-      XFree(mit_info);
-  }
-
-  XScreenSaverInfo *mit_info;
+  IdleData() {}
+  ~IdleData() {}
 };
 
 IdleQueryLinux::IdleQueryLinux() : idle_data_(new IdleData()) {}
@@ -35,16 +17,7 @@
 IdleQueryLinux::~IdleQueryLinux() {}
 
 int IdleQueryLinux::IdleTime() {
-  if (!idle_data_->mit_info)
-    return 0;
-
-  if (XScreenSaverQueryInfo(ui::GetXDisplay(),
-                            RootWindow(ui::GetXDisplay(), 0),
-                            idle_data_->mit_info)) {
-    return (idle_data_->mit_info->idle) / 1000;
-  } else {
-    return 0;
-  }
+  return 0;
 }
 
 }  // namespace browser
--- chromium-17.0.942.0.orig/chrome/chrome.gyp
+++ chromium-17.0.942.0/chrome/chrome.gyp
@@ -530,11 +530,6 @@
           'dependencies': [
             '../build/linux/system.gyp:gtk',
           ],
-          'link_settings': {
-            'libraries': [
-              '-lXss',
-            ],
-          },
         }],
         ['OS=="linux" and chromeos==1', {
           'include_dirs': [
--- chromium-17.0.942.0.orig/chrome/chrome_common.gypi
+++ chromium-17.0.942.0/chrome/chrome_common.gypi
@@ -257,7 +257,6 @@
             'libraries': [
               '-lX11',
               '-lXrender',
-              '-lXss',
               '-lXext',
             ],
           },
--- chromium-17.0.942.0.orig/chrome/chrome_browser.gypi
+++ chromium-17.0.942.0/chrome/chrome_browser.gypi
@@ -4260,11 +4260,6 @@
           ],
         }],
         ['os_posix == 1 and OS != "mac"', {
-          'link_settings': {
-            'libraries': [
-              '-lXss',
-            ],
-          },
           'conditions': [
             ['linux_breakpad==1', {
               'sources': [