summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-05-13 17:38:05 +0300
committerraveit65 <[email protected]>2016-05-14 11:25:49 +0200
commitddc3c12d06e80f64eb8b8248920aa7bca2d52753 (patch)
treeda5ea966053b3ff7e8a8c5466da84634bf9daee5 /src
parentac4a9b0b1e620b688b5dfc3721378f43f59648aa (diff)
downloadmate-notification-daemon-ddc3c12d06e80f64eb8b8248920aa7bca2d52753.tar.bz2
mate-notification-daemon-ddc3c12d06e80f64eb8b8248920aa7bca2d52753.tar.xz
Coco, Nodoka: set notification window type
fixes animation effects with compiz
Diffstat (limited to 'src')
-rw-r--r--src/themes/coco/coco-theme.c1
-rw-r--r--src/themes/nodoka/nodoka-theme.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index 07a306f..5200348 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -505,6 +505,7 @@ create_notification(UrlClickedCb url_clicked)
#endif
gtk_window_set_title(GTK_WINDOW(win), "Notification");
+ gtk_window_set_type_hint(GTK_WINDOW(win), GDK_WINDOW_TYPE_HINT_NOTIFICATION);
gtk_widget_add_events(win, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
gtk_widget_realize(win);
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 3be3293..a045d90 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -856,6 +856,7 @@ create_notification(UrlClickedCb url_clicked)
#endif
gtk_window_set_title(GTK_WINDOW(win), "Notification");
+ gtk_window_set_type_hint(GTK_WINDOW(win), GDK_WINDOW_TYPE_HINT_NOTIFICATION);
gtk_widget_add_events(win, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
gtk_widget_realize(win);
gtk_widget_set_size_request(win, WIDTH, -1);