Mercurial > hg > xemacs-beta
diff src/ExternalShell.c @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children |
line wrap: on
line diff
--- a/src/ExternalShell.c Mon Aug 13 11:19:22 2007 +0200 +++ b/src/ExternalShell.c Mon Aug 13 11:20:41 2007 +0200 @@ -171,22 +171,19 @@ 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, }; @@ -194,7 +191,7 @@ NULL, NULLQUARK, XtShellExtensionVersion, - sizeof (ShellClassExtensionRec), + sizeof(ShellClassExtensionRec), ExternalShellRootGeometryManager }; @@ -204,7 +201,7 @@ */ /* superclass */ (WidgetClass) &shellClassRec, /* class_name */ "ExternalShell", - /* size */ sizeof (ExternalShellRec), + /* size */ sizeof(ExternalShellRec), /* Class Initializer */ NULL, /* class_part_initialize*/ NULL, /* XtInheritClassPartInitialize, */ /* Class init'ed ? */ FALSE, @@ -224,9 +221,9 @@ /* 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, @@ -322,7 +319,7 @@ case extw_notify_focus_in: { XFocusChangeEvent evnt; - + evnt.type = FocusIn; evnt.serial = LastKnownRequestProcessed (XtDisplay (wid)); evnt.send_event = True; @@ -337,10 +334,10 @@ #endif break; } - + case extw_notify_focus_out: { XFocusChangeEvent evnt; - + evnt.type = FocusOut; evnt.serial = LastKnownRequestProcessed (XtDisplay (wid)); evnt.send_event = True; @@ -371,11 +368,11 @@ 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); @@ -469,8 +466,8 @@ 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;