Skip to content

Commit

Permalink
fix(x: main): do xrdb_load before setting cursor shape (fixes #127) (#…
Browse files Browse the repository at this point in the history
…129)

* fix(x: main): do xrdb_load before setting cursor shape (fixes #127)

* fix(x: main): do xrdb_load and xsetcursor after parsing cli args
  • Loading branch information
actionless committed Dec 11, 2020
1 parent 9837593 commit a0894b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x.c
Expand Up @@ -2111,7 +2111,6 @@ main(int argc, char *argv[])
{
xw.l = xw.t = 0;
xw.isfixed = False;
xsetcursor(cursorshape);

ARGBEGIN {
case 'a':
Expand Down Expand Up @@ -2167,12 +2166,13 @@ main(int argc, char *argv[])
if (!opt_title)
opt_title = (opt_line || !opt_cmd) ? "xst" : opt_cmd[0];

xrdb_load();
xsetcursor(cursorshape);
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
cols = MAX(cols, 1);
rows = MAX(rows, 1);
tnew(cols, rows);
xrdb_load();
xinit(cols, rows);
xsetenv();
selinit();
Expand Down

0 comments on commit a0894b5

Please sign in to comment.