Home » U++ Library support » TopWindow&PopUp, TrayIcon » Problems with CursorImage/Popups/Frames on X11
Re: Problems with CursorImage/Popups/Frames on X11 [message #13090 is a reply to message #13024] |
Mon, 10 December 2007 17:37   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I've found a possible solution to this:
#define MWM_HINTS_DECORATIONS (1L << 1)
#define PROP_MWM_HINTS_ELEMENTS 5
typedef struct {
uint32_t flags;
uint32_t functions;
uint32_t decorations;
int32_t input_mode;
uint32_t status;
} MWMHints;
...
MWMHints mwmhints;
Atom prop;
memset(&mwmhints, 0, sizeof(mwmhints));
prop = XInternAtom(Xdisplay, "_MOTIF_WM_HINTS", false);
mwmhints.flags = MWM_HINTS_DECORATIONS;
mwmhints.decorations = 0;
XChangeProperty(Xdisplay, wnd.GetWindow(), prop, prop, 32, PropModeReplace,
(unsigned char *) &mwmhints,
PROP_MWM_HINTS_ELEMENTS);
... This tells the Window Manager not to add decorations to the window which allows me to add my own without redirecting any events. It uses Motif hints, but these are allegedly supported by most WMs. It certainly works on KDE.
|
|
|
 |
|
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: Fri Jun 06 07:38:53 CEST 2025
Total time taken to generate the page: 0.04946 seconds
|