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 » TopWindow&PopUp, TrayIcon » Problems with CursorImage/Popups/Frames on X11
Re: Problems with CursorImage/Popups/Frames on X11 [message #13106 is a reply to message #13093] Tue, 11 December 2007 12:45 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
After some more experimentation I would advise against using this method, it's non-standard and KDE doesn't seem to cope with window redrawing very well.

There is some good news though Smile. Did you know that if you call Popup on a TopWindow then mouse capture works correctly? I would guess that this is because of something happenning in TopWindow::EventProc. There is still some sort of problem with the popup taking capture on opening but this may be either due to the special popup grabbing code or an error in my code. I've attached a modified version of my package to illustrate this (click OK on first window, then OK on the popup).

The only problem that remains is the persistence of the popup when the main window is minimised, but it seems that this shouldn't be too hard to fix.

Additionally, I believe there is a mistake in TopWindow::SyncCaption:
          if(GetOwner())
			wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_DIALOG");
		if(tool)
			wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_TOOLBAR");
		wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_NORMAL");

should be:
		if(tool)
			wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_TOOLBAR");
		if(GetOwner())
			wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_DIALOG");
		wina[n++] = XAtom("_NET_WM_WINDOW_TYPE_NORMAL");

As the window types should be listed in order of preference the TOOLBAR type should go first.

James

[Updated on: Tue, 11 December 2007 12:45]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Painting below your window, not bleeding into your window...
Next Topic: Toolbox inside a TopWindow
Goto Forum:
  


Current Time: Sat Jun 07 16:41:46 CEST 2025

Total time taken to generate the page: 0.03660 seconds