static XtResource resources[] = {
#define offset(field) XtOffset(ExternalShellWidget, externalShell.field)
- { XtNwindow, XtCWindow, XtRWindow, sizeof (Window),
- offset (external_window), XtRImmediate, (XtPointer)0},
- { XtNclientTimeout, XtCClientTimeout, XtRInt, sizeof(int),
- offset(client_timeout), XtRImmediate,(XtPointer)DEFAULT_WM_TIMEOUT},
- { XtNdeadClient, XtCDeadClient, XtRBoolean, sizeof(Boolean),
- offset(dead_client), XtRImmediate, (XtPointer)False},
+ { XtNwindow, XtCWindow,
+ XtRWindow, sizeof (Window),
+ offset (external_window), XtRImmediate, (XtPointer)0 },
+ { XtNclientTimeout, XtCClientTimeout,
+ XtRInt, sizeof (int),
+ offset(client_timeout), XtRImmediate,(XtPointer)DEFAULT_WM_TIMEOUT },
+ { XtNdeadClient, XtCDeadClient,
+ XtRBoolean, sizeof (Boolean),
+ offset(dead_client), XtRImmediate, (XtPointer)False },
};
static CompositeClassExtensionRec compositeClassExtRec = {
NULL,
NULLQUARK,
XtCompositeExtensionVersion,
- sizeof(CompositeClassExtensionRec),
+ sizeof (CompositeClassExtensionRec),
TRUE,
};
NULL,
NULLQUARK,
XtShellExtensionVersion,
- sizeof(ShellClassExtensionRec),
+ sizeof (ShellClassExtensionRec),
ExternalShellRootGeometryManager
};
*/
/* superclass */ (WidgetClass) &shellClassRec,
/* class_name */ "ExternalShell",
- /* size */ sizeof(ExternalShellRec),
+ /* size */ sizeof (ExternalShellRec),
/* Class Initializer */ NULL,
/* class_part_initialize*/ NULL, /* XtInheritClassPartInitialize, */
/* Class init'ed ? */ FALSE,
/* resize */ XtInheritResize,
/* expose */ NULL,
/* set_values */ NULL, /* XtInheritSetValues, */
- /* set_values_hook */ NULL,
- /* set_values_almost */ XtInheritSetValuesAlmost,
- /* get_values_hook */ NULL,
+ /* set_values_hook */ NULL,
+ /* set_values_almost */ XtInheritSetValuesAlmost,
+ /* get_values_hook */ NULL,
/* accept_focus */ NULL,
/* intrinsics version */ XtVersion,
/* callback offsets */ NULL,
case extw_notify_focus_in: {
XFocusChangeEvent evnt;
-
+
evnt.type = FocusIn;
evnt.serial = LastKnownRequestProcessed (XtDisplay (wid));
evnt.send_event = True;
#endif
break;
}
-
+
case extw_notify_focus_out: {
XFocusChangeEvent evnt;
-
+
evnt.type = FocusOut;
evnt.serial = LastKnownRequestProcessed (XtDisplay (wid));
evnt.send_event = True;
int x, y, win_gravity = -1, flag;
XSizeHints hints;
Window win = w->externalShell.external_window;
-
+
{
Window dummy_root;
unsigned int dummy_bd_width, dummy_depth, width, height;
-
+
/* determine the existing size of the window. */
XGetGeometry(XtDisplay(W), win, &dummy_root, &x, &y, &width,
&height, &dummy_bd_width, &dummy_depth);
w->core.background_pixmap =
(*childP)->core.background_pixmap;
} else {
- attr->background_pixel =
- w->core.background_pixel =
+ attr->background_pixel =
+ w->core.background_pixel =
(*childP)->core.background_pixel;
}
break;
{
Window root, parent, *children;
unsigned int nchildren;
- int i;
+ unsigned int i;
if (!XQueryTree (display, w, &root, &parent, &children, &nchildren))
return;