diff options
author | Javier <dev.git@javispedro.com> | 2014-05-24 19:38:00 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2014-05-24 19:38:00 +0200 |
commit | 96b576bad7bba88fedd41a963430073404c6514a (patch) | |
tree | 230984ba5e102a88d53bbfba1a78205c1f0e908e /libtopmenu-server | |
parent | 4c02d3a0ce08aab4e4b89b4eee7a72145e66c33a (diff) | |
download | topmenu-gtk-96b576bad7bba88fedd41a963430073404c6514a.tar.gz topmenu-gtk-96b576bad7bba88fedd41a963430073404c6514a.zip |
fix some warnings
Diffstat (limited to 'libtopmenu-server')
-rw-r--r-- | libtopmenu-server/topmenu-widget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libtopmenu-server/topmenu-widget.c b/libtopmenu-server/topmenu-widget.c index e4c51de..05a2895 100644 --- a/libtopmenu-server/topmenu-widget.c +++ b/libtopmenu-server/topmenu-widget.c @@ -68,7 +68,11 @@ static Window topmenu_widget_get_current_active_window(TopMenuWidget *self) { #ifdef HAVE_MATEWNCK MatewnckWindow *window = matewnck_screen_get_active_window(self->priv->screen); - return matewnck_window_get_xid(window); + if (window) { + return matewnck_window_get_xid(window); + } else { + return None; + } #else return None; #endif @@ -129,7 +133,7 @@ static void topmenu_widget_embed_topmenu_window(TopMenuWidget *self, Window wind } // Otherwise, disembed the current client - g_debug("Pulling the plug"); + g_debug("Disembedding window 0x%lx", GDK_WINDOW_XID(cur)); gdk_window_hide(cur); // Reparent back to root window to end embedding |