lxqt-panel icon indicating copy to clipboard operation
lxqt-panel copied to clipboard

[Feature request]Exclude applications from taskbar

Open stefonarch opened this issue 2 years ago • 10 comments

Is your feature request related to a problem? Please describe.

Qterminal's drop down window is always shown in taskbar, from where it's basically never used.

Describe the solution you'd like

An option to exclude some applications from being shown in taskbar could be nice.

stefonarch avatar Jun 17 '22 06:06 stefonarch

It can be done by adding an editable exception list.

But is it so desirable to be worth the extra code and GUI complication? Isn't it the job of WM? KWin can do it (although maybe not for drop-down QTerminal — I haven't tried).

tsujan avatar Jun 17 '22 07:06 tsujan

Kwin can do it, but only for the Plasma panel afaik, I tested it once. But yes, I don't know how desirable this feature really is.

stefonarch avatar Jun 17 '22 07:06 stefonarch

If the problem is only with qterminal, it can be changed there, i tried here and adding setAttribute(Qt::WA_X11NetWmWindowTypeUtility); here when setting up the window seems to do what u need.

elviosak avatar Jun 17 '22 08:06 elviosak

Hm, doesn't work here (with Kwin)... but would be nice to have.

void MainWindow::enableDropMode()
{
    setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint);
    setAttribute(Qt::WA_X11NetWmWindowTypeUtility);

    m_dropLockButton = new QToolButton(this);

stefonarch avatar Jun 17 '22 08:06 stefonarch

But it does work with xfwm4.

stefonarch avatar Jun 17 '22 08:06 stefonarch

Xfwm here, you could also try Qt::WA_X11NetWmWindowTypeDock or Qt::WA_X11NetWmWindowTypeMenu these 2 also skipped taskbar but the terminal didn't get focused when opening... Other than these i think it would need to use with xlib or xcb and that's probably not desirable.

elviosak avatar Jun 17 '22 08:06 elviosak

Other than these i think it would need to use with xlib or xcb and that's probably not desirable

I agree. Setting attributes may have unpredictable side effects too.

I think the cleanest way of doing it is adding support for an editable exception list to lxqt-panel's Task Manager.

tsujan avatar Jun 17 '22 09:06 tsujan

Not focus and no input too...

stefonarch avatar Jun 17 '22 10:06 stefonarch

adding support for an editable exception list to lxqt-panel's Task Manager.

This shouldn't be too hard to add, but qterminal has to change window class/classname for the taskbar to filter only the dropdown window.

elviosak avatar Jun 18 '22 00:06 elviosak

qterminal has to change window class/classname for the taskbar to filter only the dropdown window.

Right.

tsujan avatar Jun 18 '22 01:06 tsujan