[Xquartz-dev] XQuartz 2.2.0_rc3 (includes spaces fix)
Pelle Johansson
morth at morth.org
Mon Apr 14 12:35:31 PDT 2008
Hi,
yeah, seems that was a red herring. More (remote) debugging seems to
indicate the space switching is done by a call to CGSOrderWindow()
with the backtrace
#1 0x95aed819 in CGSOrderWindow ()
#2 0x00426cbc in _xp_configure_window_cb ()
#3 0x0041fca8 in _xp_async_thread ()
#4 0x942d5c55 in _pthread_start ()
#5 0x942d5b12 in thread_start ()
I guess this would indicate it is an issue in Apple-WM and not in the
actual X server? Obviously, this is deep inside Apple only code, so
not sure I can research it more, unless given some pointers. FWIW, the
space is changed at CGSOrderWindow() call number 2 or 3 out of 3 or 4
for that mouse click, it seems to vary a bit.
--
Pelle Johansson
14 apr 2008 kl. 03.54 skrev Jeremy Huddleston:
> Yeah, the RootlessReorderWindow() is a known issue... there's a
> problem where it's being called by both threads. That should be a
> fairly straight forward fix, and is on the list for 2.2.1.
>
> --Jeremy
>
> On Apr 13, 2008, at 12:01, Pelle Johansson wrote:
>> Hi,
>>
>> I have no problem to reproduce it. The windows does not get focus
>> when I switch space. Some initial debugging seems to indicate that
>> RootlessReorderWindow is called twice, first for the correct
>> window, and then for the one in the different space. The second one
>> (with the wrong pWin) seem to have this backtrace:
>>
>> #0 0x000215e6 in RootlessReorderWindow ()
>> #1 0x00083c98 in MoveWindowInStack ()
>> #2 0x00084771 in ReflectStackChange ()
>> #3 0x00085114 in ConfigureWindow ()
>> #4 0x00063921 in ProcConfigureWindow ()
>> #5 0x0006a575 in Dispatch ()
>> #6 0x00079071 in main ()
>>
>> ProcessInputEvents() is called with a ButtonPress event before the
>> second call, but no other events. That's as far as I've gotten
>> tonight...
>>
>> Another oddity, which might be related, is that if I switch spaces
>> back and forth with the keyboard, the xterm window will have moved
>> to the bottom of the global window stack, but still have keyboard
>> focus. Hrm, just noticed it happens even if it does not have focus
>> before the switch. For example, I have this mail editing window
>> open, with an xterm in the background, and switch spaces back and
>> forth. The mail window will still be frontmost, but it is the xterm
>> that has focus (maybe because X11 is the only app in my second
>> space).
>>
>> HTH,
>> --
>> Pelle Johansson
>>
>> 13 apr 2008 kl. 02.49 skrev Jeremy Huddleston:
>>> I unplugged my mouse completely, so I just have the trackpad (and
>>> thus it's easy to not "jiggle" accidently). I can't reproduce
>>> this by doing cmd-arrow or cmd-number space switching. The window
>>> just has focus. If I don't click at all, it has focus. If I
>>> click, it stays in focus. rrr.
>>>
>>> Do you have any other applications running in either space?
>>>
>>> Can you give me detailed instructions on how to reproduce from a
>>> fresh-login with no other applications running (and can you please
>>> try with a new test-user as well and I will do the same).
>>>
>>> Thanks for your patience. Today is the day of "it just works for
>>> me, why can't I get it to break"... sigh
>>>
>>>
>>> On Apr 12, 2008, at 17:33, Jamie Kennea wrote:
>>>>
>>>> On Apr 11, 2008, at 5:23 PM, Merle Reinhart wrote:
>>>>> Now I see what Jamie was talking about. The trick was to not
>>>>> move the mouse (I had done so to get the cursor active in the
>>>>> new space).
>>>>
>>>> Yes, this is clearly the issue. I guess I was just switching
>>>> (with Ctrl+cursor) and clicking on the trackpad button to
>>>> activate the window without moving the cursor. I can confirm that
>>>> if I do purposefully move the mouse before clicking on a window,
>>>> then I don't see the behaviour.
>>>>
>>>> What about moving the mouse makes the difference I wonder, and
>>>> why Jeremy can't reproduce it (perhaps a very sensitive mouse
>>>> that makes it difficult to not move the cursor before
>>>> clicking?!?). How many systems and what type do you have to try
>>>> out X11 on?
>>>>
>>>> Cheers,
>>>>
>>>> Jamie
>>>> _______________________________________________
>>>> Xquartz-dev mailing list
>>>> Xquartz-dev at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>>>
>>> _______________________________________________
>>> Xquartz-dev mailing list
>>> Xquartz-dev at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>> _______________________________________________
>> Xquartz-dev mailing list
>> Xquartz-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
>
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/xquartz-dev
More information about the Xquartz-dev
mailing list