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   |
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 . 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
|
|
|
 |
|
Problems with CursorImage/Popups/Frames on X11
By: mrjt on Fri, 30 November 2007 17:09
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Tue, 04 December 2007 15:24
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Wed, 05 December 2007 17:00
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Mon, 10 December 2007 17:37
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Mon, 10 December 2007 18:06
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Mon, 10 December 2007 18:27
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Mon, 10 December 2007 18:49
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Tue, 11 December 2007 12:45
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Sat, 29 December 2007 18:55
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Thu, 03 January 2008 11:09
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mirek on Thu, 03 January 2008 18:01
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Thu, 03 January 2008 18:29
|
 |
|
Re: Problems with CursorImage/Popups/Frames on X11
By: mrjt on Tue, 22 January 2008 10:52
|
Goto Forum:
Current Time: Sat Jun 07 16:41:46 CEST 2025
Total time taken to generate the page: 0.03660 seconds
|