Skip to content

Commit

Permalink
Don't show in desktop
Browse files Browse the repository at this point in the history
Consider that the desktop window is not a regular window
  • Loading branch information
gabrielfin authored and flexiondotorg committed Jul 19, 2019
1 parent d4e60d6 commit e7cfdf3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions window-buttons-applet/window-buttons-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions window-menu-applet/window-menu-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion window-menu-applet/window-menu-button.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 2 additions & 0 deletions window-title-applet/window-title-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e7cfdf3

Please sign in to comment.