CHANGE: removed actor disconnect due to error
This commit is contained in:
16
dist/extension.js
vendored
16
dist/extension.js
vendored
@@ -38,13 +38,14 @@ export default class MyExtension extends Extension {
|
||||
this._actorSignalIds.set(global.window_manager, [global.window_manager.connect("switch-workspace", this._updateFloating.bind(this))]);
|
||||
}
|
||||
disable() {
|
||||
for (const actorSignalIds of [this._actorSignalIds, this._windowSignalIds]) {
|
||||
for (const [actor, signalIds] of actorSignalIds) {
|
||||
for (const signalId of signalIds) {
|
||||
actor.disconnect(signalId);
|
||||
}
|
||||
}
|
||||
}
|
||||
// for (const actorSignalIds of [this._actorSignalIds, this._windowSignalIds]) {
|
||||
// for (const [actor, signalIds] of actorSignalIds!) {
|
||||
// for (const signalId of signalIds) {
|
||||
// console.log("SignalID ", signalId);
|
||||
// console.log("Actor ", actor instanceof Clutter.Actor);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
this._actorSignalIds?.clear();
|
||||
this._windowSignalIds?.clear();
|
||||
this._setFloat(false);
|
||||
@@ -80,7 +81,6 @@ export default class MyExtension extends Extension {
|
||||
this._setFloat(!maximized);
|
||||
}
|
||||
_setFloat(float) {
|
||||
console.log("Float: ", float);
|
||||
Main.panel.add_style_class_name(float ? "floating" : "solid");
|
||||
Main.panel.remove_style_class_name(float ? "solid" : "floating");
|
||||
}
|
||||
|
||||
10
dist/metadata.json
vendored
Normal file
10
dist/metadata.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "float bar",
|
||||
"description": "Adaptive floating topbar",
|
||||
"uuid": "floatbar@tomtroeger.de",
|
||||
"settings-schema": "org.gnome.shell.extensions.my-extension",
|
||||
"shell-version": [
|
||||
"46"
|
||||
]
|
||||
}
|
||||
|
||||
9
dist/stylesheet.css
vendored
Normal file
9
dist/stylesheet.css
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
#panel.floating {
|
||||
margin: 3px;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
#panel.solid {
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user