From e7cfdf3a129c975c2956e93256e97303f3738a2e Mon Sep 17 00:00:00 2001 From: gabrielfin Date: Sat, 13 Jul 2019 15:53:53 -0300 Subject: [PATCH] Don't show in desktop Consider that the desktop window is not a regular window --- window-buttons-applet/window-buttons-applet.vala | 2 ++ window-menu-applet/window-menu-applet.vala | 2 ++ window-menu-applet/window-menu-button.vala | 2 +- window-title-applet/window-title-applet.vala | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/window-buttons-applet/window-buttons-applet.vala b/window-buttons-applet/window-buttons-applet.vala index 04a1962..94bdf93 100644 --- a/window-buttons-applet/window-buttons-applet.vala +++ b/window-buttons-applet/window-buttons-applet.vala @@ -223,6 +223,8 @@ namespace WindowButtonsApplet{ switch(behaviour){ case "active-always": win = Wnck.Screen.get_default().get_active_window(); + if(win != null && win->get_class_instance_name() == "desktop_window") + win = null; break; case "active-maximized": win = Wnck.Screen.get_default().get_active_window(); diff --git a/window-menu-applet/window-menu-applet.vala b/window-menu-applet/window-menu-applet.vala index 049f6e4..b8531ad 100644 --- a/window-menu-applet/window-menu-applet.vala +++ b/window-menu-applet/window-menu-applet.vala @@ -81,6 +81,8 @@ namespace WindowMenuApplet{ switch(behaviour){ case "active-always": win = Wnck.Screen.get_default().get_active_window(); + if(win != null && win->get_class_instance_name() == "desktop_window") + win = null; break; case "active-maximized": win = Wnck.Screen.get_default().get_active_window(); diff --git a/window-menu-applet/window-menu-button.vala b/window-menu-applet/window-menu-button.vala index 3175eb5..89af721 100644 --- a/window-menu-applet/window-menu-button.vala +++ b/window-menu-applet/window-menu-button.vala @@ -52,7 +52,7 @@ namespace WindowWidgets{ public void menu_set(){ - if(_window != null && _window.get_class_instance_name() != "desktop_window"){ + if(_window != null){ this.set_popup(new Wnck.ActionMenu(_window)); this.set_sensitive(true); } diff --git a/window-title-applet/window-title-applet.vala b/window-title-applet/window-title-applet.vala index ef53332..8fae8cd 100644 --- a/window-title-applet/window-title-applet.vala +++ b/window-title-applet/window-title-applet.vala @@ -64,6 +64,8 @@ namespace WindowTitleApplet{ switch(behaviour){ case "active-always": win = Wnck.Screen.get_default().get_active_window(); + if(win != null && win->get_class_instance_name() == "desktop_window") + win = null; break; case "active-maximized": win = Wnck.Screen.get_default().get_active_window();