Skip to content

Commit

Permalink
fix for gfx and auto login
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Feb 15, 2021
1 parent 3dbf043 commit 0a581a7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,11 @@ xrdp_mm_egfx_caps_advertise(void* user, int caps_count,
}
xrdp_region_add_rect(self->wm->screen_dirty_region, &xr_rect);
self->encoder = xrdp_encoder_create(self);
if (self->wm->gfx_delay_autologin)
{
self->wm->gfx_delay_autologin = 0;
xrdp_wm_set_login_mode(self->wm, 2);
}
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion xrdp/xrdp_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ struct xrdp_wm

struct xrdp_region *screen_dirty_region;
int last_screen_draw_time;

int gfx_delay_autologin;
};

/* rdp process */
Expand Down
10 changes: 8 additions & 2 deletions xrdp/xrdp_wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,14 @@ xrdp_wm_init(struct xrdp_wm *self)
list_add_item(self->mm->login_names, (long)g_strdup(q));
list_add_item(self->mm->login_values, (long)g_strdup(r));
}

xrdp_wm_set_login_mode(self, 2);
if (self->session->client_info->gfx == 0)
{
xrdp_wm_set_login_mode(self, 2);
}
else
{
self->gfx_delay_autologin = 1;
}
}
else
{
Expand Down

0 comments on commit 0a581a7

Please sign in to comment.