Hi,
I am developing a desktop application for Linux using C and XLib functions.
My application always runs in full screen mode(no caption bar and window decoration).
My requirement is I should be able to switch to other application windows by pressing alt+tab key.
It works fine on Turbo Linux in both KDE and GNOME.
But the problem is with Redhat Linux with only GNOME. - Im not able to switch to other application windows by using alt+tab key.
My target PC has Redhat8.0 + Timesys 4.1 and has only GNOME.
Im attaching the code here..Please help me to fix the problem.
------------------------
Atom wm_hints;
long KWMHints = 0;
struct {
long flags;
long functions;
long decorations;
long inputMode;
}MWMHints = { MWM_HINTS_DECORATIONS, 0, 0, 0};
/* Remove Window Border and Title Bar */
/* First try for MWM Hints */
wm_hints = XInternAtom(g_display, "_MOTIF_WM_HINTS", True);
if ( wm_hints != None ) {
XChangeProperty(g_display, g_window, wm_hints, wm_hints, 32,
PropModeReplace, (unsigned char *)&MWMHints,
sizeof(MWMHints)/sizeof(long));
}
/* Now try to set KWM hints */
wm_hints = XInternAtom(g_display, "KWM_WIN_DECORATION", True);
if ( wm_hints !=
None )
{
XChangeProperty(g_display, g_window, wm_hints, wm_hints, 32,
PropModeReplace, (unsigned char *)&KWMHints,
sizeof(KWMHints)/sizeof(long));
}
-----------------------
Regards,
Rajendra