Skip to content

Commit db33442

Browse files
authored
[CinnamonBurnMyWindows@klangman] Fix doom effect randomization (#746)
* The doom effect was not being added to the randomized list of effects when the config option was enabled, this fix will properly add the doom effect to the list of options for random selection.
1 parent ed030d1 commit db33442

File tree

9 files changed

+65
-40
lines changed

9 files changed

+65
-40
lines changed

CinnamonBurnMyWindows@klangman/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.9.3
4+
5+
* Fix Randomized effects so that when the Doom effect is enabled under "Random Effects" it can actually be randomly selected for use
6+
37
## 0.9.2
48

59
* Added application specific effect settings that override the default effects setting when a specific application window is opened/closed

CinnamonBurnMyWindows@klangman/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ https://github.com/Schneegans/Burn-My-Windows
1313

1414
Cinnamon 6.2 (Mint 22) or better.
1515

16-
This extension needs the Cinnamon.GLSLEffect class which is only available in Cinnamon 6.2. I had attempted to work around this issue in order to support older versions of Cinnamon but so far I have not been successful.
16+
This extension needs the Cinnamon.GLSLEffect class which is only available in Cinnamon 6.2.
1717

1818
## Known issues
1919

20-
In the setting configure window under the "Effect Settings" tab, when changing the "Show setting for effect" drop-down to select a different effect, sometimes the contents under the "Effect Specific Settings" title will not properly update. Because of this, only a subset of the available options are visible. I believe this is a Cinnamon bug. You can force Cinnamon to properly redraw the options by selecting the "General" tab then selecting the "Effect Settings" tab again. After that, the complete set of "Effect Specific Settings" should be visible.
20+
In the setting configure window under the "Effect Settings" tab, when changing the "Show setting for effect" drop-down to select a different effect, sometimes the contents under the "Effect Specific Settings" title will not properly update. Because of this, only a subset of the available options are visible. I believe this is a Cinnamon bug. You can force Cinnamon to properly redraw the options by selecting the "General" tab then returning to the "Effect Settings" tab again. After that, the complete set of "Effect Specific Settings" should be visible.
2121

2222
When closing the Steam Client "setting" window the 'close window effect' does not show the windows contents, resulting in the closing effect to show where the window had existed but otherwise has no negative effect.
2323

24-
Starting VirtualBox shows a full screen animation of both the Open and Close effect even when the window is not starting maximized. I assume this is caused by some weirdness with how VirtualBox was written.
24+
Starting VirtualBox shows a full screen animation of both the Open and Close effect even when the window is opening. I assume this is caused by some weirdness with how VirtualBox was written.
2525

26-
The Doom effect seems to finish animating at a noticeably lower position than where the window is actually located. This results in the sudden jump up after the animation is completed.
26+
The Doom open effect seems to finish animating at a noticeably lower position than where the window is actually located. This results in the sudden jump up after the animation is completed. When used as a close effect it works correctly.
2727

2828
All open window effects seem to animate in a location that is one pixel off the windows real location. This causes a very small (nearly unnoticeable) jump of the window after the animation has finished. The only exception is "Doom", which as stated above has a more pronounced jump.
2929

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/6.2/extension.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,23 @@ const SignalManager = imports.misc.signalManager;
5353

5454
const Effect = {
5555
Apparition: 0,
56+
BrokenGlass: 1,
57+
Doom: 2,
5658
EnergizeA: 3,
5759
EnergizeB: 4,
60+
Fire: 5,
5861
Glide: 6,
5962
Glitch: 7,
6063
Hexagon: 8,
6164
Incinerate: 9,
65+
Matrix: 10,
66+
PaintBrush: 11,
6267
Pixelate: 12,
6368
PixelWheel: 13,
6469
PixelWipe: 14,
6570
Portal: 15,
71+
SnapOfDisintegration: 16,
72+
TRexAttack: 17,
6673
TVEffect: 18,
6774
TVGlitch: 19,
6875
Wisps: 20,
@@ -258,10 +265,16 @@ class BurnMyWindows {
258265
let append = (forOpening)?"-open":"-close";
259266
if (this._settings.getValue("apparition-random-include" + append))
260267
effectOptions.push(Effect.Apparition);
268+
//if (this._settings.getValue("broken-glass-random-include" + append))
269+
// effectOptions.push(Effect.BrokenGlass);
270+
if (this._settings.getValue("doom-random-include" + append))
271+
effectOptions.push(Effect.Doom);
261272
if (this._settings.getValue("energize-a-random-include" + append))
262273
effectOptions.push(Effect.EnergizeA);
263274
if (this._settings.getValue("energize-b-random-include" + append))
264275
effectOptions.push(Effect.EnergizeB);
276+
//if (this._settings.getValue("file-random-include" + append))
277+
// effectOptions.push(Effect.Fire);
265278
if (this._settings.getValue("glide-random-include" + append))
266279
effectOptions.push(Effect.Glide);
267280
if (this._settings.getValue("glitch-random-include" + append))
@@ -270,6 +283,10 @@ class BurnMyWindows {
270283
effectOptions.push(Effect.Hexagon);
271284
if (this._settings.getValue("incinerate-random-include" + append))
272285
effectOptions.push(Effect.Incinerate);
286+
//if (this._settings.getValue("matrix-random-include" + append))
287+
// effectOptions.push(Effect.Matrix);
288+
//if (this._settings.getValue("paint-brush-random-include" + append))
289+
// effectOptions.push(Effect.PaintBrush);
273290
if (this._settings.getValue("pixelate-random-include" + append))
274291
effectOptions.push(Effect.Pixelate);
275292
if (this._settings.getValue("pixel-wheel-random-include" + append))
@@ -278,6 +295,10 @@ class BurnMyWindows {
278295
effectOptions.push(Effect.PixelWipe);
279296
if (this._settings.getValue("portal-random-include" + append))
280297
effectOptions.push(Effect.Portal);
298+
//if (this._settings.getValue("snap-of-disintegration-random-include" + append))
299+
// effectOptions.push(Effect.SnapOfDisintegration);
300+
//if (this._settings.getValue("trex-attack-random-include" + append))
301+
// effectOptions.push(Effect.TRexAttack);
281302
if (this._settings.getValue("tv-effect-random-include" + append))
282303
effectOptions.push(Effect.TVEffect);
283304
if (this._settings.getValue("tv-glitch-random-include" + append))

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"uuid": "CinnamonBurnMyWindows@klangman",
33
"name": "Burn My Windows",
4-
"version": "0.9.2",
4+
"version": "0.9.3",
55
"description": "Window open/close effects based on the Burn-My-Windows Gnome extension by Schneegans",
66
"url": "https://github.com/klangman/CinnamonBurnMyWindows",
77
"website": "https://github.com/klangman/CinnamonBurnMyWindows",

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/po/CinnamonBurnMyWindows@klangman.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#, fuzzy
66
msgid ""
77
msgstr ""
8-
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.2\n"
8+
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.3\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-08 23:29-0400\n"
11+
"POT-Creation-Date: 2024-09-17 22:20-0400\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -17,23 +17,23 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919

20-
#. 6.2/extension.js:200 6.2/extension.js:415
20+
#. 6.2/extension.js:207 6.2/extension.js:436
2121
msgid "Error"
2222
msgstr ""
2323

24-
#. 6.2/extension.js:200
24+
#. 6.2/extension.js:207
2525
msgid "was NOT enabled"
2626
msgstr ""
2727

28-
#. 6.2/extension.js:201
28+
#. 6.2/extension.js:208
2929
msgid "The existing extension"
3030
msgstr ""
3131

32-
#. 6.2/extension.js:201
32+
#. 6.2/extension.js:208
3333
msgid "conflicts with this extension."
3434
msgstr ""
3535

36-
#. 6.2/extension.js:416
36+
#. 6.2/extension.js:437
3737
msgid ""
3838
"The previously focused window is not backed by an application and therefore "
3939
"application specific effects can not be applied to that window"

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/po/ca.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.1\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-08 23:29-0400\n"
11+
"POT-Creation-Date: 2024-09-17 22:20-0400\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: Odyssey <odysseyhyd@gmail.com>\n"
1414
"Language-Team: \n"
@@ -18,23 +18,23 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"X-Generator: Poedit 3.4.2\n"
2020

21-
#. 6.2/extension.js:200 6.2/extension.js:415
21+
#. 6.2/extension.js:207 6.2/extension.js:436
2222
msgid "Error"
2323
msgstr "Error"
2424

25-
#. 6.2/extension.js:200
25+
#. 6.2/extension.js:207
2626
msgid "was NOT enabled"
2727
msgstr "no s'ha activat"
2828

29-
#. 6.2/extension.js:201
29+
#. 6.2/extension.js:208
3030
msgid "The existing extension"
3131
msgstr "L'extensió existent"
3232

33-
#. 6.2/extension.js:201
33+
#. 6.2/extension.js:208
3434
msgid "conflicts with this extension."
3535
msgstr "conflictivitza amb aquesta extensió."
3636

37-
#. 6.2/extension.js:416
37+
#. 6.2/extension.js:437
3838
msgid ""
3939
"The previously focused window is not backed by an application and therefore "
4040
"application specific effects can not be applied to that window"
@@ -283,8 +283,8 @@ msgid ""
283283
"Focus a window you want to enable application specific setting for then "
284284
"return here and press this button."
285285
msgstr ""
286-
"Enfoqueu una finestra per a la qual vulgueu activar un ajust específic per "
287-
"a l'aplicació, torneu aquí i polseu aquest botó."
286+
"Enfoqueu una finestra per a la qual vulgueu activar un ajust específic per a "
287+
"l'aplicació, torneu aquí i polseu aquest botó."
288288

289289
#. 6.2->settings-schema.json->random-title->description
290290
msgid "Effect"

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/po/es.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.1\n"
88
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
99
"extensions/issues\n"
10-
"POT-Creation-Date: 2024-09-08 23:29-0400\n"
10+
"POT-Creation-Date: 2024-09-17 22:20-0400\n"
1111
"PO-Revision-Date: \n"
1212
"Last-Translator: \n"
1313
"Language-Team: \n"
@@ -17,23 +17,23 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"X-Generator: Poedit 3.4.4\n"
1919

20-
#. 6.2/extension.js:200 6.2/extension.js:415
20+
#. 6.2/extension.js:207 6.2/extension.js:436
2121
msgid "Error"
2222
msgstr "Error"
2323

24-
#. 6.2/extension.js:200
24+
#. 6.2/extension.js:207
2525
msgid "was NOT enabled"
2626
msgstr "no estaba habilitado"
2727

28-
#. 6.2/extension.js:201
28+
#. 6.2/extension.js:208
2929
msgid "The existing extension"
3030
msgstr "La extensión existente"
3131

32-
#. 6.2/extension.js:201
32+
#. 6.2/extension.js:208
3333
msgid "conflicts with this extension."
3434
msgstr "entra en conflicto con esta extensión."
3535

36-
#. 6.2/extension.js:416
36+
#. 6.2/extension.js:437
3737
msgid ""
3838
"The previously focused window is not backed by an application and therefore "
3939
"application specific effects can not be applied to that window"

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/po/fr.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.2\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2024-09-08 23:29-0400\n"
11+
"POT-Creation-Date: 2024-09-17 22:20-0400\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: Claudiux <claude.clerc@gmail.com>\n"
1414
"Language-Team: \n"
@@ -18,23 +18,23 @@ msgstr ""
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"X-Generator: Poedit 3.4.2\n"
2020

21-
#. 6.2/extension.js:200 6.2/extension.js:415
21+
#. 6.2/extension.js:207 6.2/extension.js:436
2222
msgid "Error"
2323
msgstr "Erreur"
2424

25-
#. 6.2/extension.js:200
25+
#. 6.2/extension.js:207
2626
msgid "was NOT enabled"
2727
msgstr "n'a PAS été activée"
2828

29-
#. 6.2/extension.js:201
29+
#. 6.2/extension.js:208
3030
msgid "The existing extension"
3131
msgstr "L'extension existante"
3232

33-
#. 6.2/extension.js:201
33+
#. 6.2/extension.js:208
3434
msgid "conflicts with this extension."
3535
msgstr "est en conflit avec cette extension."
3636

37-
#. 6.2/extension.js:416
37+
#. 6.2/extension.js:437
3838
msgid ""
3939
"The previously focused window is not backed by an application and therefore "
4040
"application specific effects can not be applied to that window"
@@ -216,8 +216,8 @@ msgid ""
216216
"Window open/close effects based on the Burn-My-Windows Gnome extension by "
217217
"Schneegans"
218218
msgstr ""
219-
"Effets d'ouverture/fermeture de fenêtres basés sur l'extension Gnome Burn-"
220-
"My-Windows de Schneegans"
219+
"Effets d'ouverture/fermeture de fenêtres basés sur l'extension Gnome Burn-My-"
220+
"Windows de Schneegans"
221221

222222
#. 6.2->settings-schema.json->general-page->title
223223
msgid "General"

CinnamonBurnMyWindows@klangman/files/CinnamonBurnMyWindows@klangman/po/nl.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version: CinnamonBurnMyWindows@klangman 0.9.2\n"
88
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
99
"extensions/issues\n"
10-
"POT-Creation-Date: 2024-09-08 23:29-0400\n"
10+
"POT-Creation-Date: 2024-09-17 22:20-0400\n"
1111
"PO-Revision-Date: 2024-09-11 11:19+0200\n"
1212
"Last-Translator: qadzek\n"
1313
"Language-Team: \n"
@@ -16,23 +16,23 @@ msgstr ""
1616
"Content-Type: text/plain; charset=UTF-8\n"
1717
"Content-Transfer-Encoding: 8bit\n"
1818

19-
#. 6.2/extension.js:200 6.2/extension.js:415
19+
#. 6.2/extension.js:207 6.2/extension.js:436
2020
msgid "Error"
2121
msgstr "Fout"
2222

23-
#. 6.2/extension.js:200
23+
#. 6.2/extension.js:207
2424
msgid "was NOT enabled"
2525
msgstr "was NIET ingeschakeld"
2626

27-
#. 6.2/extension.js:201
27+
#. 6.2/extension.js:208
2828
msgid "The existing extension"
2929
msgstr "De bestaande extensie"
3030

31-
#. 6.2/extension.js:201
31+
#. 6.2/extension.js:208
3232
msgid "conflicts with this extension."
3333
msgstr "conflicteert met deze extensie."
3434

35-
#. 6.2/extension.js:416
35+
#. 6.2/extension.js:437
3636
msgid ""
3737
"The previously focused window is not backed by an application and therefore "
3838
"application specific effects can not be applied to that window"

0 commit comments

Comments
 (0)