diff options
-rw-r--r-- | xrdp/xrdp_login_wnd.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_wm.c | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 30951dc5..337ec236 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -668,7 +668,7 @@ xrdp_login_wnd_create(struct xrdp_wm *self) self->login_window->bg_color = globals->ls_bg_color; self->login_window->left = primaryxoffset - - self->login_window->width / 2; + self->login_window->width / 2; self->login_window->top = primaryyoffset - self->login_window->height / 2; diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 9f85d0db..8ce18bb6 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -1919,15 +1919,15 @@ xrdp_wm_show_log(struct xrdp_wm *self) /* multimon scenario, draw log window on primary monitor */ if (self->client_info->monitorCount > 1) { - for (i = 0; i < self->client_info->monitorCount; ++i) - { - if (self->client_info->minfo[i].is_primary) - { - primaryxoffset = self->screen->width - self->client_info->minfo[i].right - 1; - primaryyoffset = self->screen->height - self->client_info->minfo[i].bottom - 1; - break; - } - } + for (i = 0; i < self->client_info->monitorCount; ++i) + { + if (self->client_info->minfo[i].is_primary) + { + primaryxoffset = self->screen->width - self->client_info->minfo[i].right - 1; + primaryyoffset = self->screen->height - self->client_info->minfo[i].bottom - 1; + break; + } + } } /* log window */ |