Fix more poorly indented/wrapped comments & code
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Tested-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
789d64e19a
commit
6be74a9080
|
@ -444,7 +444,8 @@ SyncSendAlarmNotifyEvents(SyncAlarm * pAlarm)
|
|||
ane.counter_value_hi = XSyncValueHigh32(pCounter->value);
|
||||
ane.counter_value_lo = XSyncValueLow32(pCounter->value);
|
||||
}
|
||||
else { /* XXX what else can we do if there's no counter? */
|
||||
else {
|
||||
/* XXX what else can we do if there's no counter? */
|
||||
ane.counter_value_hi = ane.counter_value_lo = 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -2312,12 +2312,11 @@ SelectForWindow(DeviceIntPtr dev, WindowPtr pWin, ClientPtr client,
|
|||
|
||||
check = (mask & exclusivemasks);
|
||||
if (wOtherInputMasks(pWin)) {
|
||||
if (check & wOtherInputMasks(pWin)->inputEvents[mskidx]) { /* It is illegal for two different
|
||||
* clients to select on any of the
|
||||
* events for maskcheck. However,
|
||||
* it is OK, for some client to
|
||||
* continue selecting on one of those
|
||||
* events. */
|
||||
if (check & wOtherInputMasks(pWin)->inputEvents[mskidx]) {
|
||||
/* It is illegal for two different clients to select on any of
|
||||
* the events for maskcheck. However, it is OK, for some client
|
||||
* to continue selecting on one of those events.
|
||||
*/
|
||||
for (others = wOtherInputMasks(pWin)->inputClients; others;
|
||||
others = others->next) {
|
||||
if (!SameClient(others, client) && (check &
|
||||
|
|
|
@ -438,8 +438,9 @@ SProcIDispatch(ClientPtr client)
|
|||
|
||||
static void
|
||||
SReplyIDispatch(ClientPtr client, int len, xGrabDeviceReply * rep)
|
||||
{
|
||||
/* All we look at is the type field */
|
||||
{ /* This is common to all replies */
|
||||
/* This is common to all replies */
|
||||
if (rep->RepType == X_GetExtensionVersion)
|
||||
SRepXGetExtensionVersion(client, len,
|
||||
(xGetExtensionVersionReply *) rep);
|
||||
|
|
|
@ -208,7 +208,8 @@ updateOverlayWindow(ScreenPtr pScreen)
|
|||
return ConfigureWindow(pWin, CWWidth | CWHeight, vlist, wClient(pWin));
|
||||
}
|
||||
|
||||
/* Let's be on the safe side and not assume an overlay window is always allocated. */
|
||||
/* Let's be on the safe side and not assume an overlay window is
|
||||
always allocated. */
|
||||
return Success;
|
||||
}
|
||||
|
||||
|
@ -678,7 +679,8 @@ compWindowUpdateAutomatic(WindowPtr pWin)
|
|||
/*
|
||||
* And paint
|
||||
*/
|
||||
CompositePicture(PictOpSrc, pSrcPicture, 0, pDstPicture, 0, 0, /* src_x, src_y */
|
||||
CompositePicture(PictOpSrc, pSrcPicture, 0, pDstPicture,
|
||||
0, 0, /* src_x, src_y */
|
||||
0, 0, /* msk_x, msk_y */
|
||||
pSrcPixmap->screen_x - pParent->drawable.x,
|
||||
pSrcPixmap->screen_y - pParent->drawable.y,
|
||||
|
|
|
@ -331,9 +331,11 @@ config_udev_pre_init(void)
|
|||
|
||||
udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "input",
|
||||
NULL);
|
||||
udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL); /* For Wacom serial devices */
|
||||
/* For Wacom serial devices */
|
||||
udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "tty", NULL);
|
||||
#ifdef CONFIG_UDEV_KMS
|
||||
udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "drm", NULL); /* For output GPU devices */
|
||||
/* For output GPU devices */
|
||||
udev_monitor_filter_add_match_subsystem_devtype(udev_monitor, "drm", NULL);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG
|
||||
|
|
|
@ -1246,7 +1246,8 @@ HasOtherPointer(WindowPtr win, DeviceIntPtr exclude)
|
|||
* Assumption: Neither A nor B are valid windows.
|
||||
*/
|
||||
static void
|
||||
CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev, WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev,
|
||||
WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
WindowPtr B, /* NoneWin or PointerRootWin */
|
||||
int mode)
|
||||
{
|
||||
|
@ -1290,7 +1291,8 @@ CoreFocusPointerRootNoneSwitch(DeviceIntPtr dev, WindowPtr A, /* PointerRootWi
|
|||
* Assumption: A is a valid window and not PointerRoot or None.
|
||||
*/
|
||||
static void
|
||||
CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, WindowPtr B, /* PointerRootWin or NoneWin */
|
||||
CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A,
|
||||
WindowPtr B, /* PointerRootWin or NoneWin */
|
||||
int mode)
|
||||
{
|
||||
WindowPtr root;
|
||||
|
@ -1336,7 +1338,8 @@ CoreFocusToPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, WindowPtr B,
|
|||
* Assumption: B is a valid window and not PointerRoot or None.
|
||||
*/
|
||||
static void
|
||||
CoreFocusFromPointerRootOrNone(DeviceIntPtr dev, WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
CoreFocusFromPointerRootOrNone(DeviceIntPtr dev,
|
||||
WindowPtr A, /* PointerRootWin or NoneWin */
|
||||
WindowPtr B, int mode)
|
||||
{
|
||||
WindowPtr root;
|
||||
|
|
|
@ -698,9 +698,10 @@ ConfineToShape(DeviceIntPtr pDev, RegionPtr shape, int *px, int *py)
|
|||
}
|
||||
|
||||
static void
|
||||
CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents, Bool confineToScreen, /* unused if PanoramiX on */
|
||||
ScreenPtr pScreen)
|
||||
{ /* unused if PanoramiX on */
|
||||
CheckPhysLimits(DeviceIntPtr pDev, CursorPtr cursor, Bool generateEvents,
|
||||
Bool confineToScreen, /* unused if PanoramiX on */
|
||||
ScreenPtr pScreen) /* unused if PanoramiX on */
|
||||
{
|
||||
HotSpot new;
|
||||
SpritePtr pSprite = pDev->spriteInfo->sprite;
|
||||
|
||||
|
|
|
@ -205,7 +205,10 @@ AllocGrab(void)
|
|||
}
|
||||
|
||||
GrabPtr
|
||||
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice, WindowPtr window, enum InputLevel grabtype, GrabMask *mask, GrabParameters *param, int type, KeyCode keybut, /* key or button */
|
||||
CreateGrab(int client, DeviceIntPtr device, DeviceIntPtr modDevice,
|
||||
WindowPtr window, enum InputLevel grabtype, GrabMask *mask,
|
||||
GrabParameters *param, int type,
|
||||
KeyCode keybut, /* key or button */
|
||||
WindowPtr confineTo, CursorPtr cursor)
|
||||
{
|
||||
GrabPtr grab;
|
||||
|
|
|
@ -262,8 +262,10 @@ SendXF86VidModeNotify(ScreenPtr pScreen, int state, Bool forced)
|
|||
ev.kind = kind;
|
||||
ev.forced = forced;
|
||||
WriteEventsToClient(pEv->client, 1, (xEvent *) &ev);
|
||||
}} static void
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
SXF86VidModeNotifyEvent(xXF86VidModeNotifyEvent * from,
|
||||
xXF86VidModeNotifyEvent * to)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue