View Full Version : Openoffice and Compiz
porcosuino
November 17th, 2006, 02:38 PM
i have debian sid with compiz 0.2.2-1 installed.
when i try to minimize openoffice that has in addition to principal window two other small windows (form tool and another one) compiz minimizes only principal window and manages other windows as separate windows.
it happens also with other applications (ex: avidemux when it's encoding).
what can i do?
RYX
November 17th, 2006, 04:14 PM
Hi porcosuino. Sorry to say, but I cannot tell what you can do against it. But I can confirm that I have the same problem on Ubuntu with compiz 0.3.2. It is also annoying because you cannot maximize the main window while the small windows are open ... The same problem in beryl. Maybe the small windows have an uncommon type and are not recognized as ToolWindow ... maybe it is a known bug?
mikedee
November 17th, 2006, 04:16 PM
Please can you try to install version 0.3.2 and then report if the same problem is happening.
0.2.2 is quite old and there were a lot of fixes between then and now. If you can bear to wait a few more days then there will be a 0.3.4 release as well.
Oops, sorry :oops: just noticed you are using debian ;)
porcosuino
November 17th, 2006, 04:44 PM
i also try compiz 3.2 from sources and git, but it is the same.
the problem appears also in beryl 0.1.1 e 0.1.2 (but i don't try last svn revision).
thanks in advice.
Luigi
mikedee
November 17th, 2006, 04:53 PM
Ahhh ... it it clear now.
If it is happening with every app then it hopefully means that it is just one of those things not implemented. In theory the code to fix it would be to add some code to the minimizeWindow function which also minimises the transient windows.
I can also see the problem so if I get a chance I will have a quick look (do not hold your breath though :))
In the meantime you may want to report it in the bug tracker, David is normally keen to fix bugs which cause people a lot of problems.
porcosuino
November 17th, 2006, 04:53 PM
in gconf i try to insert all type of windows in minimize plugin but things don't change. but is it a common and known problem or is it an only my and RYX's problem? i can't find an entry in bug list.
porcosuino
November 17th, 2006, 04:58 PM
great! :D
i report the bug.
thanks.
porcosuino
November 20th, 2006, 12:01 AM
I make a change to minimizeWindow function in window.c file and now minimize of transient windows in openoffice works, but i don't now if my "patch" is right and i don't know if it can create other problems.
my change is:
void
minimizeWindow (CompWindow *w)
{
if (!(w->actions & CompWindowActionMinimizeMask))
return;
to
void
minimizeWindow (CompWindow *w)
{
if (!(w->actions | CompWindowActionMinimizeMask))
return;
i make this, because, if i understand, CompWindowActionMinimizeMask define if windows has or no button to minimize (or something similar) and openoffice transient windows don't have this button so...
am i right or i say a crock?
thanks in advice.
Luigi
RAOF
November 20th, 2006, 01:19 AM
...
void
minimizeWindow (CompWindow *w)
{
if (!(w->actions | CompWindowActionMinimizeMask))
return;
...
Isn't this equivalent to
if (!TRUE)
return;
because, presumably, CompWindowActionMinimizeMask is a non-zero bitstring, so ORing it with anything will result in a non-zero (ie: true) bitstring?
Incidentally, I wonder if gcc is clever enough to optimize out that code :).
mikedee
November 21st, 2006, 01:59 AM
Looks like the bug was just fixed :)
Should hopefully be in the 0.3.4 release
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.