|
|
|
@ -864,8 +864,8 @@ bool CrystalClient::isModalSystemNotification()
|
|
|
|
|
int format, result;
|
|
|
|
|
unsigned long n, left;
|
|
|
|
|
Atom kde_wm_system_modal_notification;
|
|
|
|
|
kde_wm_system_modal_notification = XInternAtom(qt_xdisplay(), "_KDE_WM_MODAL_SYS_NOTIFICATION", False);
|
|
|
|
|
result = XGetWindowProperty(qt_xdisplay(), windowId(), kde_wm_system_modal_notification, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, /*(unsigned char **)*/ &data);
|
|
|
|
|
kde_wm_system_modal_notification = XInternAtom(tqt_xdisplay(), "_KDE_WM_MODAL_SYS_NOTIFICATION", False);
|
|
|
|
|
result = XGetWindowProperty(tqt_xdisplay(), windowId(), kde_wm_system_modal_notification, 0L, 1L, False, XA_CARDINAL, &actual, &format, &n, &left, /*(unsigned char **)*/ &data);
|
|
|
|
|
if (result == Success && data != None && format == 32 )
|
|
|
|
|
{
|
|
|
|
|
return TRUE;
|
|
|
|
@ -1176,13 +1176,13 @@ void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_cl
|
|
|
|
|
if (v_wrapper) *v_wrapper=0;
|
|
|
|
|
if (v_client) *v_client=0;
|
|
|
|
|
// Our Deco is the child of a frame, get our parent
|
|
|
|
|
if (XQueryTree(qt_xdisplay(),widget()->winId(),&root,&frame,&children,&numc) == 0)
|
|
|
|
|
if (XQueryTree(tqt_xdisplay(),widget()->winId(),&root,&frame,&children,&numc) == 0)
|
|
|
|
|
return;
|
|
|
|
|
if (children!=NULL)XFree(children);
|
|
|
|
|
children=NULL;
|
|
|
|
|
|
|
|
|
|
// frame has two children, us and a wrapper, get the wrapper
|
|
|
|
|
if (XQueryTree(qt_xdisplay(),frame,&root,&parent,&children,&numc)==0)
|
|
|
|
|
if (XQueryTree(tqt_xdisplay(),frame,&root,&parent,&children,&numc)==0)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
for (uint i=0;i<numc;i++)
|
|
|
|
@ -1193,7 +1193,7 @@ void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_cl
|
|
|
|
|
children=NULL;
|
|
|
|
|
|
|
|
|
|
// wrapper has only one child, which is the client. We want this!!
|
|
|
|
|
if (XQueryTree(qt_xdisplay(),wrapper,&root,&parent,&children,&numc)==0)
|
|
|
|
|
if (XQueryTree(tqt_xdisplay(),wrapper,&root,&parent,&children,&numc)==0)
|
|
|
|
|
return;
|
|
|
|
|
if (numc==1)client=children[0];
|
|
|
|
|
if (children!=NULL)XFree(children);
|
|
|
|
|