-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle-window behavior question #59
Comments
That's weird, seems like when there are no child on a Window it misbehaves. If you add any child to it, it works as expected |
I can't figure out what could cause this. It never occurred to me, every time I tested a Window I always added a |
Huh, indeed. I would like to add that originally I used an empty box as a child, but this started working as soon as I added a label to the box. |
just going to add that this also occurs when the child of the Window is a Revealer with connections: [[App, (revealer, name, visible) => {
if (name !== 'windowname')
return;
if (visible)
revealer.set_reveal_child(true);
else
revealer.set_reveal_child(false);
}]], |
I'm also having this same problem, but only when one of the child of the window is a revealer. Does anyone have a working minimal example of a toggle-able revealer widget? |
Wow, it looks like that you need to put the Widget.Box({
css: "padding: 1px;",
child: Widget.Revealer({
...
}),
}); I've only figured this out after digging through @Aylur's dotfiles. Anyone know what's going on behind this witchcraft? |
Hi @Aylur ,
Given the following config:
if I run
ags --toggle-window 'InfoPopup'
, the window is shown after the command run the third time only and not the first. If the window hasvisible: true
property, the command works obviously the second time, but it means the window should be shown immediately at the start ofags
, no?This is a reduced example, the goal is to bind
onClicked: () => App.toggleWindow('InfoPopup')
to a button.Thank you in advance
The text was updated successfully, but these errors were encountered: