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 = {
if (!window.oldGeometry) {
return;
}
maximizeEffect.windowForceBlurRoleState = window.data(5);
window.setData(5, true);
maximizeEffect.windowForceBlurRoleState = window.data(Effect.WindowForceBlurRole);
window.setData(Effect.WindowForceBlurRole, true);
var oldGeometry, newGeometry;
oldGeometry = window.oldGeometry;
newGeometry = window.geometry;
......@@ -76,7 +76,7 @@ var maximizeEffect = {
}
},
restoreForceBlurState: function(window) {
window.setData(5, maximizeEffect.windowForceBlurRoleState);
window.setData(Effect.WindowForceBlurRole, maximizeEffect.windowForceBlurRoleState);
},
geometryChange: function (window, oldGeometry) {
"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