[ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard

The X.org X server 1.8.0 is now available. It's pretty close to RC2,
with some XQuartz and Cygwin/X changes, and some various input cleanups.

One other notable change since RC3 is that udev is now the default input
device autoconfiguration mechanism where available, and the server
installs a 10-evdev.conf file to make sure you get input devices after
installing the new server.

Dan Nicholson (1):
  config/udev: Prefer product name from attribute rather than uevent

Fernando Carrijo (1):
  Cleanup some comments in SpriteRec

Jeremy Huddleston (13):
  Revert XQuartz: Explicitly pass a bellProc to make XBell() work again.
  XQuartz: GLX: Fix Availability for Tiger ppc workaround
  XQuartz: Minor cleanup
  XQuartz: xpbproxy: Cleanup xpbproxy threading
  XQuartz: pbproxy: Make standalone xpbproxy respect the launchd prefix
  XQuartz: Constrain the pointer to the updated display bounds on display 
reconfigure.
  XKB: Fix garbage initialization
  XQuartz: Workaround weird key data reported on some layouts
  GLX: Remove a redundant initialization
  darwin: Generate crash reports on FatalError()
  XQuartz: Re-query dixScreenOrigins as the value could've changed.
  darwin: Correct inline assembly for  ___crashreporter_info__
  Bump bundle version to 2.5.1

Keith Packard (2):
  Install 10-evdev.conf in $(prefix)/etc/X11/xorg.conf.d under udev
  xserver 1.8.0

Michel Dänzer (1):
  Xext: Fix cursor reference counting hazard.

Mikhail Gusarov (1):
  kdrive: Bump evdev maxKeycode

Peter Harris (1):
  Fix crash when all glyphs of a given depth are freed, but not all 
glyphsets

Peter Hutterer (4):
  configure: Always define XINPUT.
  xfree86: remove if 1 from the dawn of time.
  xfree86: merge driver from the input class into the options.
  configure: enable udev backend as auto

Rami Ylimaki (1):
  os: Prevent backtrace from being stopped in noreturn functions.

Ruediger Oertel (2):
  xfree86: Handle driver autoconfiguration when .conf files exist
  Remove now obsolete function chooseVideoDriver

Tiago Vignatti (1):
  xfree86: die gracefully in the vga arbiter if AddScreen fails

Tomas Carnecky (1):
  Fix typos in the swap functions

Yaakov Selkowitz (14):
  Cygwin/X: Fix make dist after 11252ed82e1f361b99e86521ac9314f868bd1a3a
  Cygwin/X: Fix windres rule for automake silent rules
  Rename xdmx client to dmxinfo
  Use libtool -export-dynamic flag for portability
  kdrive: Use $(MAKE) in relink rules
  Use EXEEXT in relink rules for portable DDXs
  Fix relink targets for silent rules
  Respect value of SED from configure
  Fix .man.N targets for AM_SILENT_RULES
  Catch errors in recursive relink targets
  mi: remove deprecated #include X11/extensions/xf86bigfstr.h in 
miinitext.c
  Xext: fix old-style function definitions in xf86bigfont.c
  New header for XF86Bigfont server functions
  Cygwin/X: Make X - XWin symlink during install


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


pgpuomGTdXki8.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Arkadiusz Miskiewicz
On Friday 02 of April 2010, Keith Packard wrote:
 The X.org X server 1.8.0 is now available. It's pretty close to RC2,
 with some XQuartz and Cygwin/X changes, and some various input cleanups.
 
 One other notable change since RC3 is that udev is now the default input
 device autoconfiguration mechanism where available, and the server
 installs a 10-evdev.conf file to make sure you get input devices after
 installing the new server.

How to get it working with latest released udev 151 ? No input device was added,
so my keyboard/mouse doesn't work.

[  1374.915] (II) intel(0): Setting screen physical size to 444 x 277
[  1374.974] (II) config/udev: Adding input device Power Button 
(/dev/input/event3)
[  1374.974] (EE) No input driver/identifier specified (ignoring)
[  1374.978] (II) config/udev: Adding input device Power Button 
(/dev/input/event2)
[  1374.978] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device AT Translated Set 2 keyboard 
(/dev/input/event1)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse 
(/dev/input/event5)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.984] (II) config/udev: Adding input device ImPS/2 Generic Wheel Mouse 
(/dev/input/mouse1)
[  1374.984] (EE) No input driver/identifier specified (ignoring)
[  1374.985] (II) config/udev: Adding input device PC Speaker 
(/dev/input/event4)
[  1374.985] (EE) No input driver/identifier specified (ignoring)
[  1374.988] (II) config/udev: Adding input device Macintosh mouse button 
emulation (/dev/input/event0)
[  1374.988] (EE) No input driver/identifier specified (ignoring)
[  1374.989] (II) config/udev: Adding input device Macintosh mouse button 
emulation (/dev/input/mouse0)
[  1374.989] (EE) No input driver/identifier specified (ignoring)


-- 
Arkadiusz MiśkiewiczPLD/Linux Team
arekm / maven.plhttp://ftp.pld-linux.org/
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

a bug of kdrive

2010-04-02 Thread xianghui liu
hello:
I think I find a problem, and maybe it is a bug.
In xorg-server-1.7.1/hw/kdrive/src/kinput.c, on line of 895:  
ki-maxScanCode = 0;  .  Both the minScanCode and the maxScanCode are set
to be zero. So  on line of 1880, the program will give a error message
driver %d wanted to post scancode %d outside of [0, 0]!.
The right way is set maxScanCode to be 255.
It is my first send e-mail to this mail-list. I wish have a reply.

Liu XiangHui
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: a bug of kdrive

2010-04-02 Thread Mikhail Gusarov

Twas brillig at 19:13:14 02.04.2010 UTC+08 when largep...@gmail.com did
gyre and gimble:

 xl In xorg-server-1.7.1/hw/kdrive/src/kinput.c, on line of 895: 
 xl ki-maxScanCode = 0; .  Both the minScanCode and the maxScanCode
 xl are set to be zero. So on line of 1880, the program will give a
 xl error message driver %d wanted to post scancode %d outside of [0,
 xl 0]!.

Those values are overriden in specific input drivers. E.g. the following
fix has been recently applied to evdev.c:

http://cgit.freedesktop.org/xorg/xserver/commit/?id=e086b99c1f5ce351b578de7cd9f616bc79d6cf64

 xl It is my first send e-mail to this mail-list. I wish have a reply.

You've got it :)

-- 
  http://fossarchy.blogspot.com/


pgp4IaUgeEJTt.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

xorg-server-1.8 MultiBufferDrawableResType

2010-04-02 Thread Klaus Dittrich

mbuf.c: In function 'MultibufferExtensionInit':
mbuf.c:442: warning: old-style function definition
mbuf.c:471: error: 'MultiBufferDrawableResType' undeclared (first use in 
this function)

mbuf.c:471: error: (Each undeclared identifier is reported only once
mbuf.c:471: error: for each function it appears in.)

--
Klaus

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 2, 2010 at 1:53 AM, Arkadiusz Miskiewicz ar...@maven.pl wrote:
 On Friday 02 of April 2010, Keith Packard wrote:
 The X.org X server 1.8.0 is now available. It's pretty close to RC2,
 with some XQuartz and Cygwin/X changes, and some various input cleanups.

 One other notable change since RC3 is that udev is now the default input
 device autoconfiguration mechanism where available, and the server
 installs a 10-evdev.conf file to make sure you get input devices after
 installing the new server.

 How to get it working with latest released udev 151 ? No input device was 
 added,
 so my keyboard/mouse doesn't work.

 [  1374.915] (II) intel(0): Setting screen physical size to 444 x 277
 [  1374.974] (II) config/udev: Adding input device Power Button 
 (/dev/input/event3)
 [  1374.974] (EE) No input driver/identifier specified (ignoring)

Can you post the rest of the log? It should be picking up the
InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
stubs used with the hal backend.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Building intel driver: where's xcb-aux?

2010-04-02 Thread Yan Seiner

OK, dumb question perhaps...

I'm trying to build the intel driver, and it's failing to build with 
XvMC support because it can't find xcb-aux:


configure:14233: checking for XVMCLIB
configure:14241: $PKG_CONFIG --exists --print-errors xvmc xext xfixes 
dri2proto x11-xcb xcb-dri2 xcb-aux

Package xcb-aux was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-aux.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xcb-aux' found
configure:14244: $? = 1
configure:14259: $PKG_CONFIG --exists --print-errors xvmc xext xfixes 
dri2proto x11-xcb xcb-dri2 xcb-aux

Package xcb-aux was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-aux.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xcb-aux' found
configure:14262: $? = 1
No package 'xcb-aux' found
configure:14290: result: no
configure:14303: checking whether to include XvMC support
configure:14305: result: no

However, git.freedisktop.git doesn't seem to know anything about xcb-aux

How do I build the latest intel driver with XvMC support?

--

  o__
  ,/'_ o__
  (_)\(_)   ,/'_  o__
A day may come  (_)\(_) ,/'_  o__
when the courage of men fails, (_)\(_) ,/'_ 
when we forsake our friends and break all (_)\(_)

bonds of fellowship, but it is not this day.
It is not this day!
This day we ride!

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Building intel driver: where's xcb-aux?

2010-04-02 Thread Mikhail Gusarov

Twas brillig at 07:09:46 02.04.2010 UTC-07 when y...@seiner.com did gyre and 
gimble:

 YS However, git.freedisktop.git doesn't seem to know anything about 
xcb-aux

xcb-util

-- 
  http://fossarchy.blogspot.com/


pgpe6q6O14PBP.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard

 Can you post the rest of the log? It should be picking up the
 InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
 the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
 stubs used with the hal backend.

Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
directory which will cause the X server to skip everything in
$(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

I'm not entirely sure that using only one xorg.conf.d directory is the
right plan.

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


pgpxbapWLOBbH.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Stefan Dirsch
On Fri, Apr 02, 2010 at 10:03:47AM -0700, Keith Packard wrote:
 
  Can you post the rest of the log? It should be picking up the
  InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
  the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
  stubs used with the hal backend.
 
 Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
 directory which will cause the X server to skip everything in
 $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

BTW, the first thing I did with 1.8.0 was:

-xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
+xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)

in config/Makefile.am

Best regards,
Stefan

Public Key available
--
Stefan Dirsch (Res.  Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0Maxfeldstraße 5
FAX: 0911-740 53 479  D-90409 Nürnberg
http://www.suse.deGermany 
-
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
-
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard
On Fri, 2 Apr 2010 19:24:42 +0200, Stefan Dirsch sndir...@suse.de wrote:

 -xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
 +xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)

A matching patch in hw/xfree86/common/xf86Config.c might be a good idea
as that uses %P/etc/X11/xorg.conf.d, where %P is replaced with
$(prefix).

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


pgpj2Wb165S61.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

Re: Smooth scrolling

2010-04-02 Thread Dima Ryazanov
I would love this feature. I'm running Linux on a MacBook, and smooth scrolling 
is the one feature I miss from OS X.


___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 2, 2010 at 10:03 AM, Keith Packard kei...@keithp.com wrote:

 Can you post the rest of the log? It should be picking up the
 InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
 the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
 stubs used with the hal backend.

 Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
 directory which will cause the X server to skip everything in
 $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.

 I'm not entirely sure that using only one xorg.conf.d directory is the
 right plan.

It might be hard to make it do the right thing with the command line
-configdir option, but all that code is pretty goofy and I would guess
not used much anymore. But as long as all the files end up in one
xorg.conf.d, the server will keep looking along all the myriad paths
detailed in xorg.conf(5) till it finds one.

Here's what I think would be more sane (assuming --sysconfdir=/etc):

xorg.conf:
1. For root, full path from -config
2. For any user, /etc/X11 + path basename from -config
3. /etc/X11/xorg.conf

xorg.conf.d:
1. For root, full path from -configdir
2. For any user, /etc/X11 + path basename from -configdir
3. /etc/X11/xorg.conf.d

Export the default in xorg-server.pc:
confdir=${sysconfdir}/X11/xorg.conf.d

Then it's straightforward to know where the right location is.

--
Dan
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Smooth scrolling

2010-04-02 Thread Max Schwarz
Am Freitag 02 April 2010 19:46:55 schrieb Dima Ryazanov:
 I would love this feature. I'm running Linux on a MacBook, and smooth
 scrolling is the one feature I miss from OS X.
Glad to hear someone else noticed it :-)

I started a repository on github (http://github.com/x-quadraht/pscroll)
and imported a few projects that might need to be changed.
But after becoming more familiar with the X.org architecture I realised
the fix actually might be quite small. I've already modified xorg-input-evdev 
to send exact relative wheel motions again, and report the resolution back to 
X.org. No change to X.org itself was required.

The applications can identify the right valuator via XI2 and get the 
resolution info.
So what's missing is support in frameworks like GTK/Qt, and the change of the 
synaptics input driver. The frameworks just need to detect the new valuator 
via XI2, and listen to the valuator events instead of the old button presses 
(which will still be sent out).

As I'm just finishing another project of mine, I won't have time for pscroll 
in the next two weeks, but after that at least a patch for firefox should be 
ready, as that is the most annoying occurance of clicky-scrolling for me. 
(firefox uses it's own scrolling system, not GTK's)

Max
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Julien Cristau
On Fri, Apr  2, 2010 at 19:24:42 +0200, Stefan Dirsch wrote:

 On Fri, Apr 02, 2010 at 10:03:47AM -0700, Keith Packard wrote:
  
   Can you post the rest of the log? It should be picking up the
   InputClass settings from the installed xorg.conf.d/10-evdev.conf. See
   the INPUTCLASS section in xorg.conf(5). They're basically like the fdi
   stubs used with the hal backend.
  
  Yeah, one possibility is that you have an existing /etc/X11/xorg.conf.d
  directory which will cause the X server to skip everything in
  $(prefix)/etc/X11/xorg.conf.d and thus miss the 10-evdev.conf file.
 
 BTW, the first thing I did with 1.8.0 was:
 
 -xorgconfddir = $(prefix)/etc/X11/$(XF86CONFIGDIR)
 +xorgconfddir = $(sysconfdir)/X11/$(XF86CONFIGDIR)
 
 in config/Makefile.am
 
And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
default make my xserver work snippets just seems wrong (and /usr
allows me to make sure they're in sync with the packages, not conflated
with configuration which is the admin's domain).

Cheers,
Julien
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Smooth scrolling

2010-04-02 Thread Piotr Gluszenia Slawinski

On Fri, 2 Apr 2010, Dima Ryazanov wrote:


I would love this feature. I'm running Linux on a MacBook, and smooth scrolling
is the one feature I miss from OS X.



sorry for 'hijacking' the thread, but on the occasion it reminded me
one feature i quite miss in Xorg for bit weaker machines
(or insane resolutions, in which even pretty decent ones seem 'slow' )

idea would be to defer scrolling updates, so i.e. just tiled pattern
would be scrolled up, each 2nd line , etc. (there would have be
many of such 'cpu saving' patterns as various hardware benefits from
various methods, and also various users have various preference
depending also on various application, i.e. for text scrolling
each 2nd. line would degrade quality of text rendering it unreadable
and making scrolling tiresome,but i.e. large solid tiles or blocks
would allow to quickly scroll i.e. to next paragraph
without loosing focus on the text).

point of this to allow quick (and sometimes also visually smooth)
scrolling not taking much of cpu and not blocking pci/agp/whatever
bus significantly.

ofcourse once user stops scrolling (or reaches slow enough scrolling 
rate), contents of scrolled element/window should be updated usual-way.



___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Keith Packard
On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org wrote:

 And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
 default make my xserver work snippets just seems wrong (and /usr
 allows me to make sure they're in sync with the packages, not conflated
 with configuration which is the admin's domain).

Yeah, that's why I picked the 'secondary' path supported by the server
so that a directory in /etc/X11 would completely override these files.

Sounds like we need to fix the server config file search path to look in
a sensible place rather than $(prefix)/etc/X11

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


pgpq8nkNYLMs1.pgp
Description: PGP signature
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg

CLIPBOARD selection doesn't save content

2010-04-02 Thread Quintus
Hi there,

OK, this is kind of a longer story. Since ~4 weeks I'm trying to create
a C extension for the Ruby programming language (I'm sure you don't have
to know Ruby to answer this question, since it's almost C code) that
allows to read from and write to the X clipboards. I've searched through
the web many, many times, but wasn't able to find any reasonable example
code on how to do this, and finally I looked into the source code of the
xsel and xclip commands which helped me quite a lot. With this, and with
further web research and search through the X11 specification and other
documents, I was able to get the reading part up and running, for the
PRIMARY, SECONDARY and CLIPBOARD selections. Now, I'm trying to
implement writing, only for the CLIPBOARD selection, since that one's
contents should persist across program death. I know, I have to acquire
CLIPBOARD's ownership; afterwards the xclipboard process would send me a
TARGETS request asking me what data I provide. I answer this with
TARGETS, UTF8_STRING, XA_STRING and TIMESTAMP, which should cause
xclipboard to ask me for UTF8_STRING or XA_STRING, but... It doesn't.
Instead, if I try to paste the copied text into an application, my
program gets a request from that application rather than from
xclipboard. Further more, when my program finishes, the data is gone. So
I suppose, something is wrong at my side.

My system is an Ubuntu Karmic machine,
uname -a:
Linux ikarus 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 04:38:19 UTC
2010 x86_64 GNU/Linux

gcc --version:
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Here's my C function binding the write functionality to Ruby:
-
/*
*call-seq:
*  Clipboard.write(clipboard, text) == nil
*
*Writes +text+ to the specified clipboard.
*/
static VALUE m_write(VALUE self, VALUE rclipboard, VALUE rtext) /*VALUE
is a Ruby object*/
{
  Display * p_display;
  Window win;
  XEvent xevt, xevt2; /*xevt2 is our response*/
  Atom targets[4];

  /*As long as we're debugging, ignore the parameters*/

  /*Open default display*/
  p_display = XOpenDisplay(NULL);
  /*Let Ruby handle protocol errors*/
  XSetErrorHandler(handle_x_errors);
  /*This are the TARGETS we support*/
  targets[0] = XInternAtom(p_display, TARGETS, True);
  targets[1] = UTF8_ATOM;
  targets[2] = XA_STRING;
  targets[3] = XInternAtom(p_display, TIMESTAMP, True); /*TODO:
Implement this request*/

  /*Output some useful information*/
  printf(PID: %i\n, getpid());
  printf(Owner of CLIPBOARD: %lu\n, XGetSelectionOwner(p_display,
CLIPBOARD_ATOM));

  /*Create a window for copying into CLIPBOARD*/
  win = CREATE_REQUESTOR_WIN;

  /*Get control of the CLIPBOARD*/
  XSetSelectionOwner(p_display, CLIPBOARD_ATOM, win, CurrentTime);
  for (;;)
  {
XNextEvent(p_display, xevt);
printf(Event received; Requested target: %s\n,
XGetAtomName(p_display, xevt.xselectionrequest.target));
printf(Requestor: %lu\n, xevt.xselectionrequest.requestor);
if (xevt.type == SelectionRequest) /*selection-related event*/
{
  if (xevt.xselectionrequest.target == XInternAtom(p_display,
TARGETS, True)) /*TARGETS information requested*/
  {
/*Write supported TARGETS into the requestor*/
XChangeProperty(p_display, xevt.xselectionrequest.requestor,
xevt.xselectionrequest.property, XA_ATOM, 32, PropModeReplace, (unsigned
char *) targets, 4);
/*Notify the requestor we have set its requested property*/
xevt2.xselection.type = SelectionNotify;
xevt2.xselection.display = xevt.xselectionrequest.display;
xevt2.xselection.requestor = xevt.xselectionrequest.requestor;
xevt2.xselection.selection = xevt.xselectionrequest.selection;
xevt2.xselection.target = xevt.xselectionrequest.target;
xevt2.xselection.time = xevt.xselectionrequest.time;
xevt2.xselection.property = xevt.xselectionrequest.property;

XSendEvent(p_display, xevt.xselectionrequest.requestor, False,
NoEventMask, xevt2);
  }
  else if (xevt.xselectionrequest.target == UTF8_ATOM ||
xevt.xselectionrequest.target == XA_STRING) /*UTF-8 or ASCII requested*/
  {
/*Write the string TEST into the requestor*/
XChangeProperty(p_display, xevt.xselectionrequest.requestor,
xevt.xselectionrequest.property, xevt.xselectionrequest.target, 8,
PropModeReplace, (unsigned char *) TEST, 4);
/*Notify the requestor we've finished*/
xevt2.xselection.type = SelectionNotify;
xevt2.xselection.display = xevt.xselectionrequest.display;
xevt2.xselection.requestor = xevt.xselectionrequest.requestor;
xevt2.xselection.selection = xevt.xselectionrequest.selection;
xevt2.xselection.target = xevt.xselectionrequest.target;
xevt2.xselection.time = 

Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Dan Nicholson
On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
 On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org wrote:
 
  And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
  default make my xserver work snippets just seems wrong (and /usr
  allows me to make sure they're in sync with the packages, not conflated
  with configuration which is the admin's domain).
 
 Yeah, that's why I picked the 'secondary' path supported by the server
 so that a directory in /etc/X11 would completely override these files.
 
 Sounds like we need to fix the server config file search path to look in
 a sensible place rather than $(prefix)/etc/X11

This is untested, but I think the patch below is all it would take to
add support for a second system directory in $prefix/lib/X11 with
lowest priority.

--
Dan

diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 718a078..06a3fa0 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -112,6 +112,10 @@ extern DeviceAssocRec mouse_assoc;
%P/lib/X11/%X.%H, %P/lib/X11/%X-%M, \
%P/lib/X11/%X
 #endif
+#ifndef SYS_CONFIGDIRPATH
+#define SYS_CONFIGDIRPATH  %P/lib/X11/%X.%H, %P/lib/X11/%X-%M, \
+   %P/lib/X11/%X
+#endif
 #ifndef PROJECTROOT
 #define PROJECTROOT/usr/X11R6
 #endif
@@ -2429,7 +2433,7 @@ checkInput(serverLayoutPtr layout, Bool implicit_layout) {
 ConfigStatus
 xf86HandleConfigFile(Bool autoconfig)
 {
-const char *filename, *dirname;
+const char *filename, *dirname, *sysdirname;
 char *filesearch, *dirsearch;
 MessageType filefrom = X_DEFAULT;
 MessageType dirfrom = X_DEFAULT;
@@ -2452,6 +2456,8 @@ xf86HandleConfigFile(Bool autoconfig)
dirfrom = X_CMDLINE;
 
xf86initConfigFiles();
+   sysdirname = xf86openConfigDirFiles(SYS_CONFIGDIRPATH, NULL,
+   PROJECTROOT);
dirname = xf86openConfigDirFiles(dirsearch, xf86ConfigDir, PROJECTROOT);
filename = xf86openConfigFile(filesearch, xf86ConfigFile, PROJECTROOT);
if (filename) {
@@ -2472,6 +2478,9 @@ xf86HandleConfigFile(Bool autoconfig)
Unable to locate/open config directory: \%s\\n,
xf86ConfigDir);
}
+   if (sysdirname)
+   xf86MsgVerb(X_DEFAULT, 0, Using system config directory: \%s\\n,
+   sysdirname);
if (!filename  !dirname)
return CONFIG_NOFILE;
 }

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Julien Cristau
On Fri, Apr  2, 2010 at 14:10:47 -0700, Dan Nicholson wrote:

 On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
  On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau jcris...@debian.org 
  wrote:
  
   And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc for the
   default make my xserver work snippets just seems wrong (and /usr
   allows me to make sure they're in sync with the packages, not conflated
   with configuration which is the admin's domain).
  
  Yeah, that's why I picked the 'secondary' path supported by the server
  so that a directory in /etc/X11 would completely override these files.
  
  Sounds like we need to fix the server config file search path to look in
  a sensible place rather than $(prefix)/etc/X11
 
 This is untested, but I think the patch below is all it would take to
 add support for a second system directory in $prefix/lib/X11 with
 lowest priority.
 
This is already in {USER,ROOT}_CONFIGDIRPATH, shouldn't it be removed
from there if we add a new search path?

Cheers,
Julien
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: Building intel driver: where's xcb-aux?

2010-04-02 Thread Sven Arvidsson
On Fri, 2010-04-02 at 17:12 -0700, Yan Seiner wrote:
 I'm not a git expert but this is the link that
 http://cgit.freedesktop.org/xcb/util/ shows for xcb-util:
 
 r...@mythtvrt:/home/src/xorg# git pull
 git://anongit.freedesktop.org/xcb/util
 fatal: Not a git repository
 
 I've tried various combinations of git/xcb/xcb-util, git/xcb/util, and
 so on.  That repostitory doesn't seem to exist.

Use git clone ?

-- 
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22

___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg


Re: [ANNOUNCE] xorg-server 1.8.0

2010-04-02 Thread Robby Workman
On Fri, 2 Apr 2010 14:29:24 -0700
Dan Nicholson dbn.li...@gmail.com wrote:

 On Fri, Apr 2, 2010 at 2:25 PM, Julien Cristau jcris...@debian.org
 wrote:
  On Fri, Apr  2, 2010 at 14:10:47 -0700, Dan Nicholson wrote:
 
  On Fri, Apr 02, 2010 at 01:20:26PM -0700, Keith Packard wrote:
   On Fri, 2 Apr 2010 21:01:30 +0200, Julien Cristau
   jcris...@debian.org wrote:
  
And I'll be using /usr/lib/X11/xorg.conf.d/ because using /etc
for the default make my xserver work snippets just seems
wrong (and /usr allows me to make sure they're in sync with
the packages, not conflated with configuration which is the
admin's domain).
  
   Yeah, that's why I picked the 'secondary' path supported by the
   server so that a directory in /etc/X11 would completely override
   these files.
  
   Sounds like we need to fix the server config file search path to
   look in a sensible place rather than $(prefix)/etc/X11
 
  This is untested, but I think the patch below is all it would take
  to add support for a second system directory in $prefix/lib/X11
  with lowest priority.
 
  This is already in {USER,ROOT}_CONFIGDIRPATH, shouldn't it be
  removed from there if we add a new search path?
 
 Yeah, probably. It was more of a proof of concept patch. Now would be
 the best time to look at those standard search paths and make them
 sane. There's no real reason to repeat the nonsense in the xorg.conf
 searching.


Maybe I'm missing something here, but what's wrong with using
e.g. $prefix/share/X11/xorg.conf.d/ for distro packages and 
$sysconfdir/X11/xorg.conf.d/ for local sysadmin?

-RW
___
xorg@lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg