Danny Baumann
2007-Mar-07 05:39 UTC
[compiz] [PATCH] minimize doesn't respect "no core instance" flag
Hi, In current git, minimize doesn't respect the PAINT_WINDOW_NO_CORE_INSTANCE_MASK flag set by other plugins. I noticed that especially in group: Tabbed windows are hidden by setting PAINT_WINDOW_NO_CORE_INSTANCE_MASK. When these windows are minimized together with their group, minimize draws its animation regardless if that flag is set or not; with the effect of the hidden windows appearing during the time of animation. I've attached a patch which makes minimize respect that flag; however, I'm not completely sure if that is the best way to do it or if it would be better to do the animation drawing inside of drawWindow(). What do you think? Regards, Danny -------------- next part -------------- A non-text attachment was scrubbed... Name: minimize-no-core-instance.patch Type: text/x-patch Size: 1544 bytes Desc: not available Url : http://lists.freedesktop.org/archives/compiz/attachments/20070307/07c93a2d/minimize-no-core-instance.bin
David Reveman
2007-Mar-09 11:14 UTC
[compiz] [PATCH] minimize doesn't respect "no core instance" flag
On Wed, 2007-03-07 at 14:39 +0100, Danny Baumann wrote:> Hi, > > In current git, minimize doesn't respect the > PAINT_WINDOW_NO_CORE_INSTANCE_MASK flag set by other plugins. I noticed > that especially in group: Tabbed windows are hidden by setting > PAINT_WINDOW_NO_CORE_INSTANCE_MASK. When these windows are minimized > together with their group, minimize draws its animation regardless if > that flag is set or not; with the effect of the hidden windows appearing > during the time of animation. > I've attached a patch which makes minimize respect that flag; however, > I'm not completely sure if that is the best way to do it or if it would > be better to do the animation drawing inside of drawWindow(). > > What do you think?Plugins are not supposed to look at the PAINT_WINDOW_NO_CORE_INSTANCE_MASK flag. It's supposed to be a write-only flag for plugins. I'm not sure what's the best solution is here as I don't know exactly how the group plugin works. Checking if the PAINT_WINDOW_NO_CORE_INSTANCE_MASK flag is preset is definitely not the correct solution though. - David
Reasonably Related Threads
- AW: Re: [PATCH] minimize doesn't respect "no core instance" flag
- AW: Re: [PATCH] minimize doesn't respect "no core instance" flag
- window drawing problems in my plugin
- [PATCH] plugin conflict between Minimize & Animation: add feature "windowanimations"
- [ANNOUNCE] compiz-0.7.8