Re: silly keycode question

2010-01-24 Thread Tom Cowell
In my experiments, I didn't want to do what Glynn suggested because I
will be repeatedly changing the grabbed keys during the lifetime of
the program. All the calls to XGrabKey seemed like a lot of overhead
to me.

So I did something different: my program is, for other reasons, using
the Xkb extension, and processing XkbStateNotifyEvent to track the
state of modifier keys. When Ctrl is pressed I grab the keys I want
with AnyModifier, and when it is released I release them.

This works for me, but I don't like it, so I think I will probably try
what Glynn has suggested.


Cheers
Tom



2010/1/24 Glynn Clements gl...@gclements.plus.com:

 Nokan Emiro wrote:

 I need to catch all the Alt+F8 keypresses in my program,
 and I do it this way:

 XGrabKey(display, XKeysymToKeycode(display, F8), Mod1Mask, root_window,
 True, GrabModeAsync, GrabModeAsync);

 This works fine if no lock keys (ScrollLock, NumLock,
 CapsLock or combinations of these) are active.

 Which one is the nicest way to catch Alt+F8
 irrespectively of the state of Lock keys?

 Grab F8 with all combinations of lock modifiers in addition to Mod1,
 i.e. 2^N separate grabs, where N is the number of lock modifiers.

 --
 Glynn Clements gl...@gclements.plus.com
 ___
 xorg mailing list
 xorg@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/xorg

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Any plans for 2d vsync?

2010-01-24 Thread André Silva
The subject pretty much sums up what I want to know.
As far as I know right now there's no support for 2d vsync and as
result I always get an annoying amount of tearing when using my
desktop, e.g. moving windows around. I know most people don't
notice/care about this but I guess I have a picky vision.

I want to know if there are any plans on syncing 2d rendering (through
XRender), mainly for nvidia graphics cards.

I'm sorry if my question might be dumb or if I'm wrong in any way, but
unfortunately I'm not knowledgeable enough about X.

Regards,
André Silva
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [PATCH] dri2: Fix order of operations issue in __glXdriSwapEvent test.

2010-01-24 Thread Keith Packard
On Thu, 21 Jan 2010 10:31:04 -0800, Eric Anholt e...@anholt.net wrote:

 -if (!drawable-eventMask  GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK)
 +if (!(drawable-eventMask  GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK))

Reviewed-by: Keith Packard kei...@keithp.com

I'll note that using 'drawable' as a name here is sub-optimal. Also the
code in glxcmds.c that sets eventMask has an inaccurate comment, and
also fails to validate the event mask to make sure it doesn't include
bits which aren't allowed.

-- 
keith.pack...@intel.com


pgptA1WcY1uAu.pgp
Description: PGP signature
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Standard timing/modeline for 720p50 1280x...@50 Hz 50Hz

2010-01-24 Thread Paul Menzel
Am Donnerstag, den 21.01.2010, 18:38 +0100 schrieb t...@cs.fau.de:
 On Thu, Jan 21, 2010 at 05:50:38PM +0100, Roland Scheidegger wrote:
  FWIW, after a bit of fiddling around these are the modelines I use (but
  I don't remember how I came up with them...), for a PT-AX200E. EDID
  looked poor to me too, aren't there still some unparsed (by Xorg) blocks?
  Modeline 1280x720_60 74.50  1280 1404 1532 1664  720 723 728 748
  -hsync +vsync
  Modeline 1280x720_50 74.25  1280 1724 1800 1984  720 723 728 748
  -hsync +vsync
 
 Thanks a lot, will try those.

Just for the record. Did you get your projector working and what
modeline did you use?


Thanks,

Paul


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg