9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATCH] Initialize x, y in gui-x11
@ 2021-08-30  9:55 Nicola Girardi
  2021-08-31  8:08 ` cinap_lenrek
  0 siblings, 1 reply; 2+ messages in thread
From: Nicola Girardi @ 2021-08-30  9:55 UTC (permalink / raw)
  To: 9front

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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] [PATCH] Initialize x, y in gui-x11
  2021-08-30  9:55 [9front] [PATCH] Initialize x, y in gui-x11 Nicola Girardi
@ 2021-08-31  8:08 ` cinap_lenrek
  0 siblings, 0 replies; 2+ messages in thread
From: cinap_lenrek @ 2021-08-31  8:08 UTC (permalink / raw)
  To: 9front

fixed, but i moved the initialization close to the block where it is used.

thank you very much!

Hash:	f1a4a54634ef0bd4fcb8402b518bf0061993564e
Author:	cinap_lenrek <cinap_lenrek@felloff.net>
Date:	Tue Aug 31 10:06:31 +0200 2021

	gui-x11: fix uninitialized vars bug for screeninit() window position (thanks Nicola Girardi)

--
cinap

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-31  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-30  9:55 [9front] [PATCH] Initialize x, y in gui-x11 Nicola Girardi
2021-08-31  8:08 ` cinap_lenrek

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ https://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git