[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

keyboard focus sticking problem origin - patch 19-7-6?



Hi all,
I believe there have been several mailings (including mine) repoting
that in some cases keyboard focus "sticks" to
rdesktop window which does not allow to use keyboard with other windows
until (at least in my case) minimizing or closing rdesktop window.

I've found the origin of this bug - patch 19-7-6. I'd like to stress it
- I don't know the REASON but I know the ORIGIN. From xwin.c I've
removed lines incorporating what they call "an annoying focus problem
bug" fix of this patch - and now (at least) my problems has gone.

Here what I did (source taken from 19-8-3):

xwin.c: ui_create_window(): removed the following line:

   XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);

xwin.c: ui_process_events(): removed the following 2 lines:

   XGetInputFocus(display, &tmpwnd, &rvt);
   if (tmpwnd == wnd || event.type == Expose)

Again, I'm not xwindows programmer (actually not a programmer at all) so
I have no idea why it helped but... anyway
it helped.

I hope 
-- 
                                                                 %%
Valery SHERMAN                                            x%%   
System Support Manager                        x%%%x    x%%%%x   %%%
Silicon Information Technologies             %%' '%%  x%'  `%x   %%
Pestovskiy per. 16 bld.1                     %%.      %%    %%   %%
109004, Moscow, Russia                        `%%%x   %%.  .%%   %%
                                                 '%%   `%%%%'    %%
phone: +7 095 502 1943                       %%. .%%   %%        %%.
       +7 095 502 1947                        `%%%'   %%          `%%'
  fax: +7 095 502 1948                                 %%%x%%%x
email: sher@sgi.ru                                     %%   %%
       sher@silicon-it.ru                               `%%%'

"Unix is not a "A-ha" experience,
 it is more of a "Holy-shit" experience."
                          - Colin McFadyen in alt.folklore.computers