FLTK logo

STR #2230

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #2230

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:1 - Specific to a machine/printer
Subsystem:Unassigned
Summary:Menus should not be animated when using Compiz - Ubuntu 9.04
Version:2.0-feature
Created By:isaque
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size  
 
#1 isaque
21:12 Jul 30, 2009
menu_compiz.diff
1k
 
 
#2 isaque
17:53 Jul 31, 2009
hello_xlib.c
2k
 
 
#3 isaque
20:46 Jul 31, 2009
menu_compiz_v2.diff
1k
 
     

Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 isaque
21:12 Jul 30, 2009
All menu windows are being created as toplevel windows and compiz understand that's a regular window, so it make the window behave like a toplevel window.

I've done a patch to change that behavior. I've tested in my system and it worked. Unfortunately it was not possible to keep the shadows.
 
 
#2 isaque
17:53 Jul 31, 2009
Well, the patch I though would fix the issue actually introduced a new one.

Now the menu windows have parent's boundaries and can't bypass it.

The only thing that can guarantee "no animation" is the override_redirect attribute, but I don't understand why it's not working.

I've created a simple Xlib program to test that in compiz and it seems that compiz is actually respecting it and not bothering with window.

So, more investigation to go. I'll be posting my progress (if any) here.

For now, I'll try to upload the Xlib program I created. If you have compiz there, please try and see what I'm saying.

Thanks.
 
 
#3 isaque
20:45 Jul 31, 2009
Finally I figure it out.

The trick is to inform Compiz which kind of window the menu is. In order to do that you need to set the _NET_WM_WINDOW_TYPE property with the _NET_NW_WINDOW_TYPE_MENU value.

New patch uploaded.
 
 
#4 alvin
04:25 Aug 11, 2009
FYI, this STR is related to STR#2082 (http://www.fltk.org/str.php?L2082). I have been using the patches from STR#2082 for sometime now without any problems.

Cheers,

Alvin
 
 
#5 isaque
04:55 Aug 11, 2009
Hi Alvin.

Thanks for the tip. I'll apply your patch and change mine to use yours as code base.

Thanks.
 
 
#6 alvin
05:36 Aug 11, 2009
I should point out that STR#2082 is for FLTK 1.x. So, you will need to take take when merging those patches.  
     

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.