diff options
author | Javier <dev.git@javispedro.com> | 2015-02-05 01:40:05 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-02-05 01:40:05 +0100 |
commit | 1dc127856d0ac52905bd3f647c9f224d0030f3f0 (patch) | |
tree | 415130202b83542f18f84cd0f11197cc75df0e62 | |
parent | 6b15d16de624be86060e7b484062d03f478b14a7 (diff) | |
download | topmenu-gtk-1dc127856d0ac52905bd3f647c9f224d0030f3f0.tar.gz topmenu-gtk-1dc127856d0ac52905bd3f647c9f224d0030f3f0.zip |
ignore several types of windows, such as docks
-rw-r--r-- | module/data.c | 15 |
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; } |