Bug 441067 - Yakuake is no longer available in the task switcher list
Summary: Yakuake is no longer available in the task switcher list
Status: REPORTED
Alias: None
Product: yakuake
Classification: Applications
Component: general (show other bugs)
Version: 21.08.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 04:57 UTC by Danail Branekov
Modified: 2023-11-30 05:56 UTC (History)
12 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
How to set window rules so Yakuake is displayed in the task switcher (99.58 KB, image/png)
2022-07-26 08:56 UTC, Strahinja Kustudic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danail Branekov 2021-08-17 04:57:41 UTC
Hello,

After upgrading Yakuake to 21.08.0 I noticed that the Yakuake window is no longer available in the task switcher list. The way I use Yakuake is just like any other regular window, I would expect to be able to alt-tab to it once it goes into the background.

Here are my Yakuake settings: https://i.imgur.com/XVqW0TS.png

Here is how I expect Yakuake to appear in the task switcher list: https://i.imgur.com/smzUtUU.png

What actually happens is that Yakuake is not available on the task switcher and I cannot navigate with alt-tab once it goes in the background.

I have bisected the commits history and found out that the commit that causes Yakuake to disappear from the task switcher list is 9202df97322ae2f58104e387e914de15b06644ff:

danail@drakula ~/workspace/yakuake (v21.07.80~13|bisect?) $ git bisect good                                                                                                                                                                                        (21ad0b5|…3)
9202df97322ae2f58104e387e914de15b06644ff is the first bad commit
commit 9202df97322ae2f58104e387e914de15b06644ff
Author: Bharadwaj Raju <bharadwaj.raju777@protonmail.com>
Date:   Tue May 18 15:14:05 2021 +0000

    Fix Yakuake icon appearing in taskbar through Qt::Tool window flag
    
    So far we've been setting _NET_WM_STATE_SKIP_TASKBAR ourselves, but
    Qt messes with this, leading to race conditions where it still
    appears in the taskbar. This sets the Qt::Tool window flag, which
    will set it via Qt itself, and won't be clobbered. An old hack has
    been removed, as it isn't needed anymore.
    
    Also makes show animation match retract animation.
    
    BUG: 360037

 app/mainwindow.cpp | 21 +--------------------
 app/mainwindow.h   |  1 -
 2 files changed, 1 insertion(+), 21 deletions(-)

Maybe removing the Qt:Tool hint (https://github.com/KDE/yakuake/commit/9202df97322ae2f58104e387e914de15b06644ff#diff-ee1399fc5423aa13e580fabe09e4b85dae1aea9141be2df2d39ed842be9f4418R64) caused that?


Thanks!

Dani
Comment 1 Danail Branekov 2021-08-17 05:12:14 UTC
> Maybe removing the Qt:Tool hint caused that?
I actually meant _adding_ the Qt:Tool hint. 

As a matter of fact I tried that myself, removing the Qt:Tool hint made Yakuake available in the task switcher list.


diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp
index 6e38b42..4cf7239 100644
--- a/app/mainwindow.cpp
+++ b/app/mainwindow.cpp
@@ -61,7 +61,7 @@
 #endif
 
 MainWindow::MainWindow(QWidget *parent)
-    : KMainWindow(parent, Qt::CustomizeWindowHint | Qt::FramelessWindowHint | Qt::Tool)
+    : KMainWindow(parent, Qt::CustomizeWindowHint | Qt::FramelessWindowHint)
 {
     QDBusConnection::sessionBus().registerObject(QStringLiteral("/yakuake/window"), this, QDBusConnection::ExportScriptableSlots);



So could you please bring back the Qt:Tool hint, or make it configurable via some sort of a setting?

Thank you!
Comment 2 geonicz 2021-08-22 07:46:49 UTC
It would be very nice to bring back this feature. Switching with different shortcuts other than Alt+Tab while doing some stuff in GUI & console is heavily annoying. Thanks to all of you, guys, making Yakuake!
Comment 3 Raúl 2021-09-24 21:44:44 UTC
Hello. I've tried Danail suggestion (patch) on yakuake 21.08 and it works. Thanks for this.
Comment 4 Arek Guzinski 2021-10-01 15:23:16 UTC
Can't wait for the fix to be available in neon packages :) - this is really annoying.

Also, I believe this is probably a duplicate of #435544
Comment 5 Mathias 2021-12-17 08:54:22 UTC
Still not working with yakuake version 21.08.3 on Gentoo with KDE Plasma
Comment 6 Peter Antoniac 2021-12-22 20:14:22 UTC
Also not working in Ubuntu 21.10 with version 21.08.1-0ubuntu1. Probably related to the wayland changes?
Comment 7 FeepingCreature 2022-01-28 18:24:12 UTC
I'd guess the devs considered this valuable feature as a bug?

You can force KDE to consider yakuake as a normal window by going to Window Rules in the system settings, then set Window Class (application) [Exact Match] yakuake, then Add Property..., Set window type, [Force] [Normal Window]. This restores yakuake to the taskbar and the window switcher.
Comment 8 FeepingCreature 2022-01-28 18:25:22 UTC
(In reply to FeepingCreature from comment #7)
> This restores yakuake to the taskbar and the window switcher.

Er, just the window switcher, sorry. Still, good enough for me.
Comment 9 ned 2022-02-19 01:31:40 UTC
Also missing this feature after a recent change. My fingers sit on alt-tab all the time. They never hover near F12. Not being able to tab-switc back to yakuake is a massive pain. I've been trying to get used to it for 6 weeks now, and it's still tripping me up multiple times an hour.
Comment 10 ned 2022-02-19 01:33:51 UTC
(In reply to FeepingCreature from comment #7)
> I'd guess the devs considered this valuable feature as a bug?
> 
> You can force KDE to consider yakuake as a normal window by going to Window
> Rules in the system settings, then set Window Class (application) [Exact
> Match] yakuake, then Add Property..., Set window type, [Force] [Normal
> Window]. This restores yakuake to the taskbar and the window switcher.

Thanks for the work-around FeepingCreature! Massively appreciated.
Comment 11 FeepingCreature 2022-02-19 10:16:48 UTC
I think it should appear in the task bar and the window switcher when it's pinned open, at least.
Comment 12 Strahinja Kustudic 2022-07-26 08:56:57 UTC
Created attachment 150917 [details]
How to set window rules so Yakuake is displayed in the task switcher

The following window rule worked to display Yakuake in the task switcher (see the attachment). What was written in #7 didn't work for me.
Comment 13 Andreas Sturmlechner 2022-08-08 10:53:16 UTC
I don't think there is anything to fix here.

- yakuake does not behave like a regular window
- afair yakuake was never visible in task manager/switcher in <=KDE SC 4 times
- it became visible in task manager during porting to Qt5/KF5 which appeared to be a bug, until that was fixed
Comment 14 Strahinja Kustudic 2022-08-08 15:06:15 UTC
It maybe was a bug at first, but it worked like that for a long time and became a feature many of us got used to. I didn't see anyone creating an issue for Yakuake appearing in the task switcher. The team should at least consider making it configurable or reverting it back to how it was before if it makes more sense.
Comment 15 Vladimir Yerilov 2022-08-08 15:53:56 UTC
I think by default Yakuake should be present in task switcher (Alt + Tab) - especially when it is pinned to be always on, but always skip task manager (applet). This makes sense in order to switch to it without pressing invoke key (F12) twice, which would first hide it, and then show it focused again, and given that often keyboards have multimedia keys assigned to Fn keys, making it accessible without extra hassle with Fn keys could be useful. At least this is what I ended up with using Kwin rules.