[Xquartz-dev] XQuartz 2.6.0_rc1 (for Leopard and Snow Leopard)

Jeremy Huddleston jeremyhu at apple.com
Mon Jan 24 10:32:14 PST 2011


If we are to do something like this, I'd like to maintain consistency with what CodeWeavers does.  How have they addressed this problem with fullscreen games?  Do they have a key sequence to switch applications / hide / minimize while captured?  If so, we should adopt the same sequences.

--Jeremy


On Jan 24, 2011, at 10:09, doh123 wrote:

> actually just just double checked CMD+Alt+A and it does auto switch back to the rootless resolution...
> 
> I need to try to put something in that does not do that I believe.  A fullscreen game drawing directly with no actual window can totally screw up if it tries to change to rootless... some games will change the resolution ok to match the new rootless res, many will not have an available mode to match and crash... I was thinking of making a keystroke that would... just release and Hide without changing modes... or something else that could prevent apps from having problems.
> 
> I think it would be a good idea, if display capturing goes in like this to change that to a more recognizable keystroke.. or at least put multiple options to do it, like CMD+Tab as well, since CMD+Tab doesn't work at all in a captured display anyways.
> 
> On Jan 24, 2011, at 11:48 AM, Jeremy Huddleston wrote:
> 
>> 
>> On Jan 23, 2011, at 23:20, doh123 wrote:
>> 
>>> Question...
>>> 
>>> Where/How would I go about putting a shortcut key command in Xquartz?
>> 
>> Check out sendEvent in X11Application.m
>> 
>>> basically when the display is captured, theres no way to switch to another program.  
>> 
>> cmd-alt-a should still work.  Does it not?
>> 
>>> What I'd like to do is somehow bind pressing CMD+Tab CMD+H and/or CMD+M (since they do nothing) to actually do something.  I'd like to find a way to make any of these release display capturing and then Hide Xquartz.  Then have Xquartz, anytime after that just happened when its reactivated, to capture the screen again like before...
>>> 
>>> basically anything for multitasking of some sort is good even if its not ideal  :-)
>>> 
>>> attached is the current screen capturing patch that seems to work ok so far.
>>> 
>>> <dcapture.patch>
>>> 
>>> On Jan 23, 2011, at 6:49 PM, Jeremy Huddleston wrote:
>>> 
>>>> 
>>>> On Jan 23, 2011, at 16:37, doh123 wrote:
>>>> 
>>>>> yeah, the captured display is always like a 2 billion level on the shielding window...  I'm just not sure how to actually code the changes to tell it to change the windowing levels so it will use the max one.  
>>>> 
>>>> Change rooted_window_levels in xpr.h
>>>> 
>>>>> Can I just call the xpr function and reset the levels?  I'm just a bit clueless on the structure of the program and what part does what functions... so feel a little lost when hacking away at the code.
>>>>> 
>>>>> I don't think any other app is really grabbing focus.  Doesn't an app that grabs focus actually change the top menu bar?
>>>> 
>>>> If you search the archives, you'll see that these are applications that grab focus and then drop it (or run and have a very small life).
>>>> 
>>>>> What happens is, every window (rootless or fullscreen) including the shielding window, lose focus... nothing else really grabs focus, and Xquartz is still the active application... its just all windows lose focus for a second or two, then the last window that was in focus comes back into focus if you haven't click on anything.  Its not actually changing to another app...  I've reproduced this on many many machines now, even with bare minimum software running to get OSX to run, including getting rid of Dashboard or anything else that could be problematic, and it never changes... just once an hour or two, sometimes only takes 10 minutes... its totally random... just "poof" and all X11 windows lose focus... then come back.  Its highly annoying in fullscreen since it hides the shielding window and you lose the whole fullscreen and see the desktop... it happens more often when I'm not running quartz-wm than when I am. (I never run it in fullscreen)
>>>> 
>>>> Yep.  That's consistent with what has been reported over the past few years.  Some people were able to fix this by disabling lastfm, itunes helper, ical helper, growl, and some others.
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Xquartz-dev mailing list
>>>> Xquartz-dev at lists.macosforge.org
>>>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>>> 
>>> 
>>> _______________________________________________
>>> Xquartz-dev mailing list
>>> Xquartz-dev at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>> 
>> 
>> _______________________________________________
>> Xquartz-dev mailing list
>> Xquartz-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev
>> 
> 
> 
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev



More information about the Xquartz-dev mailing list