Bug 339290 - Add some client property to hint the window shall be inverted, eg. _KDE_NET_WM_STATE_INVERTED
Summary: Add some client property to hint the window shall be inverted, eg. _KDE_NET_W...
Status: RESOLVED DUPLICATE of bug 99198
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-22 08:08 UTC by Salvo "LtWorf" Tomaselli
Modified: 2016-09-02 11:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salvo "LtWorf" Tomaselli 2014-09-22 08:08:44 UTC
Sometimes I use some kwin effects to revert the colours of the entire screen, but then i re-revert them on yakuake, because they already have black background in my configuration.

What happens is that as soon as I "fold" yakuake, the reverse colour will reset.

Reproducible: Always
Comment 1 Eike Hein 2014-09-22 13:19:12 UTC
Yakuake doesn't destroy its window, though, it only hides it.
Comment 2 Salvo "LtWorf" Tomaselli 2014-09-22 16:50:56 UTC
So is this a kwin bug?
Comment 3 Eike Hein 2014-09-22 16:57:28 UTC
I think it's reasonable to expect that kwin would remember it across a window hide+show, yeah.

I'll move it and we can see what kwin thinks.
Comment 4 Martin Flöser 2014-09-22 17:04:55 UTC
as we apply the slidingpopup animation we can be quite certain that the we get 
a windowClosed signal. This means the effect doesn't know anything about the 
window any more.

Sorry, don't think there is anything we could do about it.
Comment 5 Eike Hein 2014-09-22 17:07:13 UTC
But isn't hidden different from closed?
Comment 6 Christoph Feck 2014-09-22 17:16:09 UTC
Hiding a Qt window with hide() destroys the X11 window. If you want to keep the X11 window, use Minimized state. "Hidden" does not exist in X11 terminology.
Comment 7 Martin Flöser 2014-09-22 17:16:29 UTC
> But isn't hidden different from closed?

no, Client::windowClosed gets emitted from:
* Client::releaseWindow
* Client::destroyClient

and both in the end destroy the Client instance.
Comment 8 Martin Flöser 2014-09-22 17:20:17 UTC
as a note: one could probably write a script to trigger the shortcut to invert 
the colors on the window whenever Yakuake gets shown
Comment 9 Thomas Lübking 2014-09-22 18:04:35 UTC
The only way around this would be _KDE_NET_WM_STATE_INVERTED or sth. which the client could set (and read before destroying the window) and the effect pick up to auto-invert the window.
Preserving such hint from the WM is no option since the WM is obliged to remove this hints by NETWM spec because the client may "want to reuse withdrawn windows"
Comment 10 Martin Flöser 2016-09-02 11:59:34 UTC
Or could be a window rule which makes it a duplicate of the general we need window rules for effects.

*** This bug has been marked as a duplicate of bug 99198 ***