-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Make the notifications move out of the way when menus are opened #481
base: master
Are you sure you want to change the base?
Make the notifications move out of the way when menus are opened #481
Conversation
@stan-janssen You can install https://github.com/vala-lang/vala-lint to check lint locally |
7bc16d8
to
70fb61d
Compare
Yes. I also noticed on my computer that the Log Out hangs when selected from the menu (in works fine when using ctrl + alt + del). It encounters a timeout for the DBus message, not sure why. Any ideas? |
@stan-janssen I was able to workaround Log Out bug by wrapping
|
What is the underlying problem and why does wrapping it in Idle () work? What does that do? |
I don't know
|
This comment was marked as outdated.
This comment was marked as outdated.
This avoids a deadlock when selecting the Log Out option.
I solved it in a new commit by making the function async and calling it with |
I like this, at least for now, because it correctly mirrors the complexity of the situation we are dealing with, and nothing more. We are explicitly excluding these two popovers from consideration, so it makes sense to name them explicitly in an if clause. I just added a commit that implements this. I think that tackles the outright bugs, let’s wait and see what @danirabbit thinks and if we need more design iterations or anything. Thanks so much for your constructive feedback! I've only just started contributing the elementary this week and it feels good. |
@danirabbit I'd love to get your opinion on this. If you like it, I can rebase it onto the current branch and we can ship it. I myself like the feature a lot, and would make working in that top-right corner of the OS more delightful. I just encountered another great use case: attempting to do something in a Wingpanel menu shortly after changing the speaker volume. Anyway, if you have a moment to take a look, I'd appreciate it. Thanks. |
@stan-janssen I looked into this and found out you can connect to |
We can move the notifications out of the way so that they no longer overlap with the indicator menus. (Fixes elementary/gala#91). This goes together with this PR: elementary/gala#1594.
Sometimes, actions in the indicator menus will trigger a notiication (like when (dis)connecting a network interface), and then the notification gets in the way.
This change allows the following behavior:
notifications-move-away.mp4
A remaining detail that I'd like some guidance on is: the notifications stack is not moved when the size of the indicator changes after it was opened. This can happen with the Network indicator when it finds additional networks:
notifications-offset-does-not-resize.mp4
I'd like to attach a signal listener or event listener to someting like an 'on_size_change' event that the widget might emit, but I couldn't find a clear way to do that. Perhaps someone has a good suggestion?