Skip to content
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

Handle GTK4 notification bubbles #1427

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ namespace Gala {

// Notifications are a special case and have to be always be handled
// regardless of the animation setting
if (!enable_animations && window.window_type != Meta.WindowType.NOTIFICATION) {
if (!enable_animations && window.window_type != Meta.WindowType.NOTIFICATION && window.title != "io.elementary.notifications") {
actor.show ();
map_completed (actor);

Expand All @@ -1352,6 +1352,12 @@ namespace Gala {

switch (window.window_type) {
case Meta.WindowType.NORMAL:
// if the window title is 'io.elementary.notifications', it is the GTK4 version of notification bubble
if (window.title == "io.elementary.notifications") {
notification_stack.show_notification (actor, enable_animations);
map_completed (actor);
}

var duration = AnimationDuration.HIDE;
if (duration == 0) {
map_completed (actor);
Expand Down