Skip to content

Commit

Permalink
[DesktopCube@yare] 2.0.5 Fixes (#807)
Browse files Browse the repository at this point in the history
1. 2nd attempt to fix a bug that occurs when a windows workspace can't be determined
2. Make windows that are 'visible on all workspaces' also visible on all cube faces
3. Release the key press/release event listeners when the cube is destroyed
  • Loading branch information
klangman authored Jan 10, 2025
1 parent 22af9b2 commit aaa8bf1
Show file tree
Hide file tree
Showing 20 changed files with 31 additions and 22 deletions.
6 changes: 6 additions & 0 deletions DesktopCube@yare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 2.0.5

- 2nd attempt to fix a bug that occurs when a windows workspace can't be determined
- Make windows that are 'visible on all workspaces' also visible on all cube faces
- Release the key press/release event listeners when the cube is destroyed

## 2.0.4

- Fix a bug that occurs when a windows workspace can't be determined
Expand Down
9 changes: 6 additions & 3 deletions DesktopCube@yare/files/DesktopCube@yare/5.4/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ Cube.prototype = {

Main.uiGroup.add_child(this.actor);

this.actor.connect('key-release-event', Lang.bind(this, this._keyReleaseEvent));
this.actor.connect('key-press-event', Lang.bind(this, this._keyPressEvent));
this.releaseID = this.actor.connect('key-release-event', Lang.bind(this, this._keyReleaseEvent));
this.pressID = this.actor.connect('key-press-event', Lang.bind(this, this._keyPressEvent));

this.initBackground();
this.dimBackground();
Expand Down Expand Up @@ -326,7 +326,8 @@ Cube.prototype = {
let windows = global.get_window_actors();
for (let i = 0; i < windows.length; i++) {
let meta_window = windows[i].get_meta_window();
if (meta_window && meta_window.get_workspace().index() === workspaceIndex
if (meta_window && meta_window.get_workspace()
&& (meta_window.get_workspace().index() === workspaceIndex || meta_window.is_on_all_workspaces())
&& !meta_window.minimized
&& meta_window.get_window_type() !== Meta.WindowType.DESKTOP) {
workspaceWindows.push(meta_window);
Expand Down Expand Up @@ -811,6 +812,8 @@ Cube.prototype = {
},

destroy: function() {
this.actor.disconnect(this.releaseID);
this.actor.disconnect(this.pressID);
this._backgroundGroup.remove_child(this.metaBackgroundActor);
Main.uiGroup.remove_child(this._backgroundGroup);
Main.uiGroup.remove_child(this.actor);
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"4.6",
"5.4"
],
"version": "2.0.4",
"version": "2.0.5",
"uuid": "DesktopCube@yare",
"name": "Desktop Cube",
"description": "Compiz Cube-like animation for workspace switching",
Expand Down
4 changes: 2 additions & 2 deletions DesktopCube@yare/files/DesktopCube@yare/po/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: DesktopCube@yare 2.0.4\n"
"Project-Id-Version: DesktopCube@yare 2.0.5\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ca.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-08-25 22:27+0200\n"
"Last-Translator: \n"
"Language-Team: Odyssey <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/da.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2022-08-07 15:06+0200\n"
"Last-Translator: Alan Mortensen <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2021-03-02 22:50+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-12-21 20:03+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-05-30 10:18+0200\n"
"Last-Translator: Muxutruk <[email protected]>\n"
"Language-Team: Basque <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgstr ""
"Project-Id-Version: DesktopCube@yare 1.1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: \n"
"Last-Translator: Kimmo Kujansuu <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-12-22 01:10+0100\n"
"Last-Translator: Claudiux <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: DesktopCube@yare\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2017-04-30 16:57+0200\n"
"Last-Translator: gogo <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-11-25 13:45+0100\n"
"Last-Translator: Kálmán „KAMI” Szalai <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2022-06-03 10:52+0200\n"
"Last-Translator: Dragone2 <[email protected]>\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2024-11-27 11:29+0100\n"
"Last-Translator: qadzek\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2021-09-26 21:23-0300\n"
"Last-Translator: Marcelo Aof\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2022-08-06 01:55+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2023-12-03 14:51-0500\n"
"Last-Translator: blogdron\n"
"Language-Team: \n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: 2017-09-01 18:36+0300\n"
"Last-Translator: Gökhan Gökkaya <[email protected]>\n"
"Language-Team: Linux Mint Türkiye\n"
Expand Down
2 changes: 1 addition & 1 deletion DesktopCube@yare/files/DesktopCube@yare/po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
"extensions/issues\n"
"POT-Creation-Date: 2025-01-09 09:51-0500\n"
"POT-Creation-Date: 2025-01-09 21:14-0500\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down

0 comments on commit aaa8bf1

Please sign in to comment.