[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#112376: marked as done (xtrojka: keyboard focus on new game [patch])



Your message dated Sun, 24 Aug 2003 13:53:54 +1000
with message-id <20030824035354.GA18154@regression.cyrius.com>
and subject line Removed
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Sep 2001 22:03:58 +0000
>From user42@zip.com.au Sat Sep 15 17:03:58 2001
Return-path: <user42@zip.com.au>
Received: from leeloo.zip.com.au [203.12.97.48] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15iNXa-0001uY-00; Sat, 15 Sep 2001 17:03:58 -0500
Received: from localhost (ppp36.dyn228.pacific.net.au [203.143.228.36])
	by leeloo.zip.com.au (8.9.1/8.9.1) with ESMTP id IAA30534
	for <submit@bugs.debian.org>; Sun, 16 Sep 2001 08:03:37 +1000
Received: from gg by localhost with local (Exim 3.31 #1 (Debian))
	id 15iNWr-0000nj-00; Sun, 16 Sep 2001 08:03:13 +1000
To: submit@bugs.debian.org
Subject: xtrojka: keyboard focus on new game [patch]
From: Kevin Ryde <user42@zip.com.au>
Date: 16 Sep 2001 08:03:13 +1000
Message-ID: <877kv0kt7i.fsf@zip.com.au>
Lines: 24
User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Delivered-To: submit@bugs.debian.org

--=-=-=

Package: xtrojka
Version: 123-17
Severity: wishlist

When a new game is started with the menu, or with ^N and the mouse
outside the central game area, and if the mouse is then moved outside
the whole xtrojka window, the game keys stop working.  I find this
under fvwm in click-to-type mode, or lwm with lazy-focus.

I think the problem is that the shell window doesn't select KeyPress
events, so when the window manager sets the focus there then the
server only delivers key events if the mouse is within a child which
has selected KeyPress, in this case the "form" widget window (which is
the same size as the shell window).

I get some joy from putting the key translations on main_screen rather
than the form, per below.

I guess the game is meant to be played with the mouse in the game
area, and paused by moving outside, but if it's going to start up with
the mouse outside then at least the keys ought to work.


--=-=-=
Content-Type: application/x-patch
Content-Disposition: attachment; filename=actions.c.diff

--- actions.c.old	Sun Jul 28 04:05:03 1996
+++ actions.c	Fri Sep 14 19:38:21 2001
@@ -23,7 +23,7 @@
 extern void toggle_wizard();
 extern void toggle_slick();
 
-extern Widget form;
+extern Widget main_screen;
 
 extern XtAppContext app_context;
 
@@ -68,7 +68,7 @@
 
 	XtAppAddActions(app_context, std_actions, XtNumber(std_actions));
 
-	XtOverrideTranslations(form, 
+	XtOverrideTranslations(main_screen, 
 			XtParseTranslationTable(std_trans));
 }
 

--=-=-=--

---------------------------------------
Received: (at 112376-done) by bugs.debian.org; 24 Aug 2003 03:54:39 +0000
>From tbm@cyrius.com Sat Aug 23 22:54:37 2003
Return-path: <tbm@cyrius.com>
Received: from bangpath.uucico.de [195.71.9.197] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19qlxb-0003Mi-00; Sat, 23 Aug 2003 22:54:35 -0500
Received: by bangpath.uucico.de (Postfix, from userid 10)
	id AE80F26B24; Sun, 24 Aug 2003 05:54:34 +0200 (CEST)
Received: by regression.cyrius.com (Postfix, from userid 1000)
	id 99C1C22D4A; Sun, 24 Aug 2003 04:53:54 +0100 (BST)
Date: Sun, 24 Aug 2003 13:53:54 +1000
From: Martin Michlmayr <tbm@cyrius.com>
To: 112376-done@bugs.debian.org, 176824-done@bugs.debian.org
Subject: Removed
Message-ID: <20030824035354.GA18154@regression.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4i
Delivered-To: 112376-done@bugs.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0
	tests=BAYES_01,USER_AGENT_MUTT
	version=2.53-bugs.debian.org_2003_8_17
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_17 (1.174.2.15-2003-03-30-exp)

This package has been removed from Debian unstable because it wasn't
maintained.

-- 
Martin Michlmayr
tbm@cyrius.com



Reply to: