Linux Lite Forums

Full Version: hide/unhide active window via Window Buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

Probably that is an easy interface question, but could not find it out with Settings.

Is there a way to disable active window hiding?

For instance I've got two FireFox windows “abc.com” and  “def.com”, “abc” is active and on top.

If I click it again via Window Buttons – abc.com hides and and I got def.com that was hidden behind.

Usually I got 30-40 windows opened and used to click the Panel first no matter that's opened/active now.
If abc is already on top, it disappears and I got wrong window - is there any way to prevent it?



Hello
I don't think it is possible to disable the minimize as an option,
You could use alt+tab to switch between open applications
or add a Window Menu to the panel
Right click on the panel -> Panel -> Add New Items
Then add a Window Menu, you can move it if you right click on it and select Move or change options on Properties.

Also there is a Window Grouping option that is disabled by default but might be usefull to you.
Panel -> Panel Preferences -> Items
Double-click on Window Buttons and you will get this:
[Image: iNLCnYc.png]
If you enable window grouping all open windows of the same type will be stored under one button.
Hope this helps.
Thanx for you reply, misko_2083!

Yes, Window Menu & Alt-TAB behave as I expect, but a bit used to App Buttons so I dig into the source code.

Seems there is a little trick:
xfce4-panel-4.11.0/plugins/tasklist/tasklist-widget.c

Code:
static void
xfce_tasklist_button_activate (XfceTasklistChild *child,
                               guint32            timestamp)
{

...

  if (wnck_window_is_active (child->window)
      || wnck_window_transient_is_most_recently_activated (child->window))
    {
      /* minimize does not work when this is assigned to the
       * middle mouse button */
      if (child->tasklist->middle_click != XFCE_TASKLIST_MIDDLE_CLICK_MINIMIZE_WINDOW)
        wnck_window_minimize (child->window);
    }
  else

I've simple set my middle button to "MINIMIZE" mode and it works!
Nice find. Smile
Middle click actions -> Minimize