27 bool is_tooltip =
false;
51 XTranslateCoordinates( parent->
app->
dpy, parent->
widget, DefaultRootWindow(parent->
app->
dpy), 0, 0, &x1, &y1, &child );
54 XSetWindowAttributes attributes;
55 attributes.override_redirect = True;
56 XChangeWindowAttributes(parent->
app->
dpy, wid->
widget, CWOverrideRedirect, &attributes);
58 Atom window_type = XInternAtom(wid->
app->
dpy,
"_NET_WM_WINDOW_TYPE", False);
59 Atom window_type_tooltip = XInternAtom(wid->
app->
dpy,
"_NET_WM_WINDOW_TYPE_TOOLTIP", False);
61 XA_ATOM, 32, PropModeReplace, (
unsigned char *) &window_type_tooltip,1 );
63 Atom window_state = XInternAtom(wid->
app->
dpy,
"_NET_WM_STATE", False);
64 Atom window_state_modal = XInternAtom(wid->
app->
dpy,
"_NET_WM_STATE_MODAL", False);
65 XChangeProperty(wid->
app->
dpy, wid->
widget, window_state,
66 XA_ATOM, 32, PropModeReplace, (
unsigned char *) &window_state_modal, 1);