Closed Zerodya closed 7 months ago
The relevant issues here are the errors about focusable, stack.items and monitorFile.
Here is how to fix them:
//focusable
Widget.Window ({
focusable: true, //deprecated
keymode: "on-demand", // works
})
//stack
Widget.Stack({
items: [ // deprecated
["name1", widget1],
["name2", widget3]
],
children : { // works
"name1": widget1,
"name2": widget3,
}
})
//monitor
Utils.monitorFile( path, callback, 'directory', ) //deprecated
Utils.monitorFile( path, callback) // works
Thank you, this was indeed the reason. No idea why I skipped over those errors.
Whenever I try to toggle a new window (
launcher
in this example) from my Bar, I get the following error:but I can't spot any issues in the code. Everything looks correct to me.
When I run
ags
I see my Bar correctly, but toggling other windows does not work, and runningags -t launcher
returnsundefined
. This behaviour happens for every other widget as well.These are the relevant configuration files (I got them here: https://github.com/chadcat7/crystal/tree/freosan) with comments on relevant parts:
config.js
:widgets/bar/Bar.js
:widgets/launcher/Launcher.js
This is the full
ags
output in terminal:Maybe the
Negative content width -35 (allocation 1, extents 18x18) while allocating gadget (node box, owner Ags_Box)
warning might be related to the issue?Anything I can do to debug the issue? I'm lost.