Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
index 26d1f9722401173afde4f39aa30ee34481e25230..66d61ac971923f8b646837771dbf9a96e81d5f93 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js |
@@ -1110,6 +1110,7 @@ UI.LongClickController = class extends Common.Object { |
* @param {!Common.Setting} themeSetting |
*/ |
UI.initializeUIUtils = function(document, themeSetting) { |
+ document.body.classList.toggle('inactive', !document.hasFocus()); |
document.defaultView.addEventListener('focus', UI._windowFocused.bind(UI, document), false); |
document.defaultView.addEventListener('blur', UI._windowBlurred.bind(UI, document), false); |
document.addEventListener('focus', UI._focusChanged.bind(UI), true); |