Linux Lite Forums
hide/unhide active window via Window Buttons - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5)
+--- Forum: Installing Linux Lite (https://www.linuxliteos.com/forums/forumdisplay.php?fid=17)
+--- Thread: hide/unhide active window via Window Buttons (/showthread.php?tid=1860)



hide/unhide active window via Window Buttons - stop0x0000000a - 05-27-2015

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?






Re: hide/unhide active window via Window Buttons - anon222 - 05-27-2015

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.


Re: hide/unhide active window via Window Buttons - stop0x0000000a - 05-31-2015

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!



Re: hide/unhide active window via Window Buttons - anon222 - 06-01-2015

Nice find. Smile
Middle click actions -> Minimize