[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
nanowm & input focus
From: "Amit Kulkarni" ####@####.#### Date: 31 Dec 2000 12:52:06 -0000 Message-Id: <F108Bdq30pnHqrQswC200006d49@hotmail.com> hi, There seems to be some problem with the way nanowm handles the input focus. consider this case Window w1 --> child of root window window w2 --> child of w1 now if i click w2 , and in w1 and w2 button down functions i am setting the focus (by using GrSetFocus) to w2 the the focus should remain with w2. If the nanowm is not running then this is true. But when nanowm is active the focus is set to a window other than w2(probably w1). Does nanowm have any setfocus (on click) handling code? if yes how does it function? Regards, Amit Kulkarni Visit me at http://www.amitkulkarni.com _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: nanowm & input focus
From: Jordan Crouse ####@####.#### Date: 2 Jan 2001 14:58:05 -0000 Message-Id: <3A51ED8A.B2DB633@censoft.com> Amit - You are facing two problems here. First, for some reason the window manager is not selecting on the FOCUS_IN or FOCUS_OUT events that informs it that the focus was s switched. Secondly, you are facing the same parenting problem that we discussed before. When you change the focus to W2, the window manager should be informed that a particular container window lost the focus, and it should be informed as to which window gained the focus. However, since the window that is getting the focus is not a container window, it should be traversing backwards through the tree until it finds a parent that is also a container, and then drawing the taskbar accordingly. Check the nano-X code and see how the GR_EVENT_TYPE_FOCUS_IN and GR_EVENT_TYPE_FOCUS_OUT events work, and that should help you determine how the nanowm should be configured. Jordan When thAmit Kulkarni wrot > > hi, > > There seems to be some problem with the way nanowm handles the input focus. > > consider this case > > Window w1 --> child of root window > window w2 --> child of w1 > > now if i click w2 , and in w1 and w2 button down functions i am setting the > focus (by using GrSetFocus) to w2 the the focus should remain with w2. > If the nanowm is not running then this is true. > But when nanowm is active the focus is set to a window other than > w2(probably w1). > Does nanowm have any setfocus (on click) handling code? if yes how does it > function? > > Regards, > Amit Kulkarni > > Visit me at http://www.amitkulkarni.com > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: nanowm & input focus
From: "Greg Haerr" ####@####.#### Date: 10 Jan 2001 19:39:26 -0000 Message-Id: <05ac01c07b3c$e1f72aa0$15320cd0@gregh> Amit, This is a subtle window manager bug. I will add it to the bug list and look into it. Currently, the window manager plays with focus a bit on certain mouse downs, and this may need fine tuning. Regards, Greg : When thAmit Kulkarni wrot : > : > hi, : > : > There seems to be some problem with the way nanowm handles the input focus. : > : > consider this case : > : > Window w1 --> child of root window : > window w2 --> child of w1 : > : > now if i click w2 , and in w1 and w2 button down functions i am setting the : > focus (by using GrSetFocus) to w2 the the focus should remain with w2. : > If the nanowm is not running then this is true. : > But when nanowm is active the focus is set to a window other than : > w2(probably w1). : > Does nanowm have any setfocus (on click) handling code? if yes how does it : > function? : > : > Regards, : > Amit Kulkarni : > : > Visit me at http://www.amitkulkarni.com : > : > _________________________________________________________________________ : > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. : > : > --------------------------------------------------------------------- : > To unsubscribe, e-mail: ####@####.#### : > For additional commands, e-mail: ####@####.#### : : --------------------------------------------------------------------- : To unsubscribe, e-mail: ####@####.#### : For additional commands, e-mail: ####@####.#### : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |