MENU type window, but still has titlebar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I could not get the window type "MENU" to go without a titlebar.  I used:

XChangeProperty(PStatus.xdisplay,twin->xwindow,XA_NET_WM_WINDOW_TYPE,XA_ATOM,32,
PropModeReplace,(unsigned char *)&XA_NET_WM_WINDOW_TYPE_MENU,1);



even with (which works for normal windows):
memset(&motif_hints,0,sizeof(PropMotifWmHints));
motif_hints.flags = MWM_HINTS_DECORATIONS;
motif_hints.decorations = 0;


//removes window decorations
//titlebar, etc...
XChangeProperty(PStatus.xdisplay,twin->xwindow, // display, window
XA_MOTIF_WM_HINTS,XA_MOTIF_WM_HINTS, // property, type
32, // format: 32-bit datums
PropModeReplace, // mode
(unsigned char *) &motif_hints, // data
PROP_MOTIF_WM_HINTS_ELEMENTS // nelements
);


//and
//no button in taskbar
XChangeProperty(PStatus.xdisplay,twin->xwindow,XA_NET_WM_STATE,XA_ATOM,32,
PropModeReplace,(unsigned char *)&XA_NET_WM_STATE_SKIP_TASKBAR,1);



Ted


_______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux