From 4dbf8f54a5d98a10708b20416b9a4a1282865f97 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 1 Feb 2022 16:57:09 -0800 Subject: setbrwindow: trivial formatting fixups Fix some minor whitespace/indentation inconsistency. --- src/rmd_setbrwindow.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/rmd_setbrwindow.c b/src/rmd_setbrwindow.c index 8534c77..846abe6 100644 --- a/src/rmd_setbrwindow.c +++ b/src/rmd_setbrwindow.c @@ -44,8 +44,8 @@ boolean rmdSetBRWindow( Display *dpy, brwin->winrect.width = specs->width; brwin->winrect.height = specs->height; - brwin->rrect.x = args->x; - brwin->rrect.y = args->y; + brwin->rrect.x = args->x; + brwin->rrect.y = args->y; brwin->rrect.width = args->width ? args->width : brwin->winrect.width - args->x; brwin->rrect.height = args->height ? args->height : brwin->winrect.height - args->y; @@ -94,13 +94,14 @@ boolean rmdSetBRWindow( Display *dpy, return FALSE; } - brwin->rrect.x = brwin->winrect.x + args->x; - brwin->rrect.y = brwin->winrect.y + args->y; + brwin->rrect.x = brwin->winrect.x + args->x; + brwin->rrect.y = brwin->winrect.y + args->y; brwin->rrect.width = args->width ? args->width : brwin->winrect.width - args->x; brwin->rrect.height = args->height ? args->height : brwin->winrect.height - args->y; if ( args->x + brwin->rrect.width > brwin->winrect.width || args->y + brwin->rrect.height > brwin->winrect.height) { + fprintf(stderr, "Specified Area is larger than window!\n"); return FALSE; } -- cgit v1.2.3