+1 очень приятное объяснение!

ледующий код удаляет границы окна?

//note the struct is declared elsewhere, is here just for clarity.
//code is from [http://tonyobryan.com/index.php?article=9][1]
typedef struct Hints
{
    unsigned long   flags;
    unsigned long   functions;
    unsigned long   decorations;
    long            inputMode;
    unsigned long   status;
} Hints;

//code to remove decoration
Hints hints;
Atom property;
hints.flags = 2;
hints.decorations = 0;
property = XInternAtom(display, "_MOTIF_WM_HINTS", true);
XChangeProperty(display,window,property,property,32,PropModeReplace,(unsigned char *)&hints,5);
XMapWindow(display, window);

До сих пор я понял, что Atom - это своего рода идентификатор, похожий на Window и Display, но я не могу понять, откуда взялась структура Hints или «_MOTIF_WM_HINTS». Может кто-нибудь объяснить мне весь этот код? Заранее спасибо, эл.

Ответы на вопрос(1)

Ваш ответ на вопрос