Commit 42dc3e4c authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

[effects/maximize] Use more verbose name for WindowForceBlurRole instead of an integer

Test Plan:
* Maximized Konsole with enabled blur
* Everything works as expected

Reviewers: #kwin, mart

Reviewed By: #kwin, mart

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13156
parent c5697d64
...@@ -29,8 +29,8 @@ var maximizeEffect = { ...@@ -29,8 +29,8 @@ var maximizeEffect = {
if (!window.oldGeometry) { if (!window.oldGeometry) {
return; return;
} }
maximizeEffect.windowForceBlurRoleState = window.data(5); maximizeEffect.windowForceBlurRoleState = window.data(Effect.WindowForceBlurRole);
window.setData(5, true); window.setData(Effect.WindowForceBlurRole, true);
var oldGeometry, newGeometry; var oldGeometry, newGeometry;
oldGeometry = window.oldGeometry; oldGeometry = window.oldGeometry;
newGeometry = window.geometry; newGeometry = window.geometry;
...@@ -76,7 +76,7 @@ var maximizeEffect = { ...@@ -76,7 +76,7 @@ var maximizeEffect = {
} }
}, },
restoreForceBlurState: function(window) { restoreForceBlurState: function(window) {
window.setData(5, maximizeEffect.windowForceBlurRoleState); window.setData(Effect.WindowForceBlurRole, maximizeEffect.windowForceBlurRoleState);
}, },
geometryChange: function (window, oldGeometry) { geometryChange: function (window, oldGeometry) {
"use strict"; "use strict";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment