aboutsummaryrefslogtreecommitdiff
path: root/module/data.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-02-05 01:40:05 +0100
committerJavier <dev.git@javispedro.com>2015-02-05 01:40:05 +0100
commit1dc127856d0ac52905bd3f647c9f224d0030f3f0 (patch)
tree415130202b83542f18f84cd0f11197cc75df0e62 /module/data.c
parent6b15d16de624be86060e7b484062d03f478b14a7 (diff)
downloadtopmenu-gtk-1dc127856d0ac52905bd3f647c9f224d0030f3f0.tar.gz
topmenu-gtk-1dc127856d0ac52905bd3f647c9f224d0030f3f0.zip
ignore several types of windows, such as docks
Diffstat (limited to 'module/data.c')
-rw-r--r--module/data.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/module/data.c b/module/data.c
index bbfbaec..8962287 100644
--- a/module/data.c
+++ b/module/data.c
@@ -49,6 +49,21 @@ topmenu_is_window_blacklisted (GtkWindow *window)
if (GTK_IS_PLUG (window))
return TRUE;
+ switch (gtk_window_get_type_hint (window)) {
+ case GDK_WINDOW_TYPE_HINT_MENU:
+ case GDK_WINDOW_TYPE_HINT_TOOLBAR:
+ case GDK_WINDOW_TYPE_HINT_DOCK:
+ case GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU:
+ case GDK_WINDOW_TYPE_HINT_POPUP_MENU:
+ case GDK_WINDOW_TYPE_HINT_TOOLTIP:
+ case GDK_WINDOW_TYPE_HINT_NOTIFICATION:
+ case GDK_WINDOW_TYPE_HINT_COMBO:
+ case GDK_WINDOW_TYPE_HINT_DND:
+ return TRUE;
+ default:
+ break;
+ }
+
return FALSE;
}