summaryrefslogtreecommitdiffstats
path: root/driver/lock.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-30 16:07:15 +0200
committerSimon Rettberg2019-07-30 16:07:15 +0200
commit813ac136e48f60d4c2b13e808107870dafcc4d52 (patch)
tree396a6c98276f6e9a04216933daebdf3af7b81d46 /driver/lock.c
parentFlush X events before locking if we have an external ungrab command (diff)
parentUpdate to 5.43 (diff)
downloadxscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.gz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.xz
xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.zip
Merge branch 'master' into openslx (5.43)
Diffstat (limited to 'driver/lock.c')
-rw-r--r--driver/lock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/lock.c b/driver/lock.c
index 10b879e..7696f30 100644
--- a/driver/lock.c
+++ b/driver/lock.c
@@ -872,6 +872,7 @@ draw_passwd_window (saver_info *si)
memset (buf, 0, sizeof(buf));
strftime (buf, sizeof(buf)-1, pw->date_label, tm);
+ XSetForeground (si->dpy, gc1, pw->foreground);
XSetFont (si->dpy, gc1, pw->date_font->fid);
y1 += pw->shadow_width;
y1 += (spacing + tb_height);
@@ -1148,7 +1149,8 @@ update_passwd_window (saver_info *si, const char *printed_passwd, float ratio)
y = (pw->thermo_field_height - 2) * (1.0 - pw->ratio);
if (y > 0)
{
- XFillRectangle (si->dpy, si->passwd_dialog, gc2,
+ XSetForeground (si->dpy, gc1, pw->thermo_background);
+ XFillRectangle (si->dpy, si->passwd_dialog, gc1,
pw->thermo_field_x + 1,
pw->thermo_field_y + 1,
pw->thermo_width-2,