Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » [not a bug] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox
[not a bug] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #17748] Wed, 27 August 2008 23:07 Go to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Configuration:
FreeBSD 6.2 RELEASE
Fluxbox (compiled from ports)

TheIDE compiled from one of the latest SVN versions with NOGTK flag.
Everything works fine except menus are not drawn. The menu header text is drawn, but the menu itself is completely invisible. In spite of being completely invisible, menus are responding to shortcuts and arrow keys along with Enter key. So user is able to choose and select any menu item, but it is not drawn.

[Updated on: Fri, 31 October 2008 01:53]

Report message to a moderator

Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #17766 is a reply to message #17748] Thu, 28 August 2008 10:36 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Have you tried with another wm?
I can remember, there also were some issues with Fluxbox some time ago.

Matthias
Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #17790 is a reply to message #17766] Thu, 28 August 2008 19:41 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Yes, it`s OK with blackbox on the same system. Strange.
Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #18288 is a reply to message #17790] Sat, 20 September 2008 11:24 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Thu, 28 August 2008 13:41

Yes, it`s OK with blackbox on the same system. Strange.


X11 is mess; one of problems is that more than half of its API is actually implemented in WM. Means that slight incompatibility of WM can cause some apps malfunction.

Mirek
Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #18853 is a reply to message #18288] Tue, 28 October 2008 17:15 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Finally I debugged deep into CtrlCore and discovered that dropdown popups and menus are drawn but they are drawn BEHIND actual active window.

I tried some dirty hack to test if it can be corrected and it worked. Partially. Dropdown menus work properly, menus are drawn properly too but disappear on mouse movement inside them.

My dirty little test patch:
CtrlCore/X11Wnd.cpp

was:
void Ctrl::PopUp(Ctrl *owner, bool savebits, bool activate, bool, bool)
{
	LLOG("POPUP: " << UPP::Name(this));
	Ctrl *q = owner ? owner->GetTopCtrl() : GetActiveCtrl();
	ignoretakefocus = true;
	Create(q, true, savebits);
	if(activate) {
		q->StartPopupGrab();
		popupgrab = true;
	}
	if(top) popup = true;
	WndShow(visible);
	
	if(activate && IsEnabled())
		SetFocus();
	if(top) top->owner = owner;
	StateH(OPEN);
}


now:
void Ctrl::PopUp(Ctrl *owner, bool savebits, bool activate, bool, bool)
{
	LLOG("POPUP: " << UPP::Name(this));
	Ctrl *q = owner ? owner->GetTopCtrl() : GetActiveCtrl();
	ignoretakefocus = true;
	Create(q, true, savebits);
	if(activate) {
		q->StartPopupGrab();
		popupgrab = true;
	}
	if(top) popup = true;
	WndShow(visible);
	
	SetWndFocus();
	XRaiseWindow(Xdisplay, top->window);

	if(activate && IsEnabled())
		SetFocus();
	if(top) top->owner = owner;
	StateH(OPEN);
}
Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #18898 is a reply to message #18853] Fri, 31 October 2008 01:53 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Solved. You were right. It was truly fluxbox issue, not U++.
Re: [bug?] Menu isn`t drawn. NOGTK. FreeBSD/Fluxbox [message #18961 is a reply to message #18898] Sun, 02 November 2008 16:46 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Mindtraveller wrote on Thu, 30 October 2008 20:53

Solved. You were right. It was truly fluxbox issue, not U++.


Indeed, popup-window management is poorly defined in X11 and wastly depends on WM...

Mirek
Previous Topic: How to set the font face of menubar and its submenu
Next Topic: images as menu
Goto Forum:
  


Current Time: Fri Mar 29 01:41:37 CET 2024

Total time taken to generate the page: 0.01506 seconds