9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Nicola Girardi <nicolagi@sdf.org>
To: 9front@9front.org
Subject: [9front] [PATCH] Initialize x, y in gui-x11
Date: Mon, 30 Aug 2021 10:55:51 +0100	[thread overview]
Message-ID: <202108301055.17UAtt3F013685@sdf.org> (raw)

Not doing so placed my drawterm out of the visible screen and had to
bring it back with xshove or pass a geometry with -g.

---
diff 9620904ebb8cf2eea22a1a81cb9bb5274dda710d 68523eec029e77bed3543f5954b2af90e838ba6b
--- a/gui-x11/x11.c	Sat Aug 14 04:39:50 2021
+++ b/gui-x11/x11.c	Mon Aug 30 10:54:18 2021
@@ -193,7 +193,7 @@
 void
 screeninit(void)
 {
-	int i, n, x, y;
+	int i, n, x=0, y=0;
 	char *argv[2];
 	Window rootwin;
 	Rectangle r;


             reply	other threads:[~2021-08-30 11:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-30  9:55 Nicola Girardi [this message]
2021-08-31  8:08 ` cinap_lenrek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202108301055.17UAtt3F013685@sdf.org \
    --to=nicolagi@sdf.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).