Re: XFree86 specific patch to freetype-config.in

2003-10-28 Thread Matthieu Herrb
Torrey Lyons wrote (in a message from Monday 27)
  The following revision to 
  xc/extras/freetype2/builds/unix/freetype-config.in is XFree86 
  specific and not in the Freetype tree:
  
  revision 1.2
  date: 2003/05/05 16:12:27;  author: dawes;  state: Exp;  lines: +29 -15
159. Make freetype-config more useful on NetBSD (#5693, Thomas Klausner).
  
  cvs diff -r xf-4_3-branch -r 1.2 freetype-config.in
  Index: freetype-config.in
  ===
  RCS file: /home/x-cvs/xc/extras/freetype2/builds/unix/freetype-config.in,v
  retrieving revision 1.1.1.4
  retrieving revision 1.2
  diff -u -d -b -w -r1.1.1.4 -r1.2
  --- freetype-config.in  15 Feb 2002 00:33:20 -  1.1.1.4
  +++ freetype-config.in  5 May 2003 16:12:27 -   1.2
  @@ -90,7 +90,7 @@
if test $echo_libs = yes ; then
 libs=-lfreetype
 if test @libdir@ != /usr/lib ; then
  -  echo [EMAIL PROTECTED]@ $libs
  +  echo -Wl,[EMAIL PROTECTED]@ [EMAIL PROTECTED]@ $libs
 else
  echo $libs
 fi
  
  Unfortunately, -R is not a recognized option to ld on Darwin and 
  perhaps other platforms as well. This should be conditionalized in 
  some way. My configure-foo is fairly weak, but it appears that the 
  hardcode_libdir_flag_spec is the configure option that should be used 
  here, rather then a hardwired ELF loader specific option.

There's also bugzilla #832 that requests that the same is done for the
other xxx-config and xxx.pc files shipped by XFree86. 

I'm going to handle it. 

Matthieu
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


3D for SMI WAS: Re: XrandR

2003-10-28 Thread Robert Woerle
Hi

I am now in contact with Keith packard and checked out his latest stuff ..
it looks promising since there is already a SMI Server there ..
unfortunately it crashes when i use the hw acceleration ...without it 
works ..



Alex Deucher schrieb:

there is a patch for support of the 731 in bugzilla:
http://bugs.xfree86.org/show_bug.cgi?id=754
No other drivers support roation in hardware at the moment, so it's up
to you to implement it from scratch I suspect.  Keith Packard did much
of the work for xrandr for PDAs.  You might want to look at the
kdrive/tinyx servers for reference.
Any chance you'd be interested in adding dualhead or 3D support? :)
 

hmm .. i am no video guru ... also these are my first attempte`s with 
X-Server coding ...
i did make a touchscreen driver and such stuff until now .

Since i got the doc`s from SMI .. i have the reference to look at ...
what is a good starting point for 3 D  ???
is there any easy to read driver which i could derive the code from ?
Alex

--- Robert Woerle [EMAIL PROTECTED] wrote:
 

Hi

I want to start implementing the Siliconmotion chips into the XRandR 
extension ...

Can someone point me to a chip which already supports this extension
and 
is able to rotate on the fly ??

I recieved the hardware specs and PCI registers from siliconmotion
and i 
am ready to spent time on that ...
i also revieved the doc`s for the latest  SMI 731 chip which is even
not 
supported at all at XFREE ...
how do i get into that ...

main issue is the XRANDR then comes the new 731 ...

Cheers Rob
--
   



__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel
 

--
_
*Robert Woerle
Linux  Customer Support*
*PaceBlade Technology Europe SA*
phone:  +49 89 552 99935
fax:+49 89 552 99910
mobile: +49 179 474 45 27
email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
web:http://www.paceblade.com
_


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


X library not found error

2003-10-28 Thread jassi brar
Hi all,
  i m trying to port X-server on s3c2410 board. I successfully crosscompiled the tinyX 
and put it in the filesystem. But when i give any command like xinit or X or 
Xfbdev its says ::

example:_
# ./Xfbdev
./Xfbdev: error while loading shared libraries: libfreetype.so.6: cannot load shared 
object file: No such file or directory
_

likwise all command endup saying library not found(all libraries), while all are 
_present_. I have set path in .profile also and it shows the PATH and LD_LIBRARY_PATH 
proper set. But somehow dosn't find the libraries, neither does it show command in 
x11r6/bin when double tab is pressed.
 Did ny1 face such problem ever? please help me
Thanx in Advance,
Jassi







Capturing events from the root window

2003-10-28 Thread Gerhard Gruber
I'm not sure if this is the proper forum for asking such a question, but I
found nothing so far on the web and so I hope to get some answers at the core
of X. If this is not the correct forum I would really appreciate it if you
could point me to where I can ask this question.

I'm developing an application which needs to filter all mouse events even
when it's window is not active. So I tried to grab the pointer and redirect it
to my app. This works, but the problem I have is that of course X doesn't
work as long as my app is active because it gets all events and the other apps
none. I was looking into the Xlib reference manuals if there is some way to
forward or return the XEvent to X again so it can be processed the normal way.
In Windows I do this with a hook function which allows me to specify that an
event is either passed on, or will be discarded after my hookfunction
returns. I wonder if there is a similar mechanism for X. I was looking into GDK, as
this would be my prefered way of doing it, but I would settle for a Xlib
solution as well if there is no other way.
So what I need is either a way to simply filter events and block them on
request (prefered) or grab all the input and forward it to the original owner if
I'm not interested in it.

Can this be done with X and/or GDK/GTK? If I know how to do it in X I could
probably figure out how to do it in GDK/GTK as well, but I've been searching
the web for several days now and I couldn't find anything helpfull. There
seem to be many workarounds for similar problems but none that works for me,
though.

Thanks for your help.

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Server regeneration no longer works

2003-10-28 Thread Frank Gießler
David Dawes wrote:
On Wed, Oct 15, 2003 at 04:17:35PM -0400, David Dawes wrote:

On Wed, Oct 15, 2003 at 12:53:32PM -0400, Mark Vojkovich wrote:

Start the server with no clients and access control disabled
XFree86 -ac.  Run a client and kill it, or run a client that
terminates itself (like xset) and the server segfaults on the
server regeneration.  I'm having a hard time getting a back trace.
It looks like the stack is trashed pretty badly.  This appears
to be a recent regression.
It looks like a malloc/free bug -- maybe a double free somewhere.  I
see it crashing in free(), called from CMapUnwrapScreen().  If I add
some debugging ErrorF's the caller of the crashing free() moves.  I'll
try a build on FreeBSD and enable some of its malloc debugging flags.


That located the problem nicely, aborting at the actual double-free.
The screen saver timers get freed in TimerInit() for each generation.
However, the timer pointers kept by the screen saver code weren't being
cleared for each generation, so the old values kept being used and added
back to the timers list.  Then they'd get freed again in TimerInit() at
the second regeneration.  Not to mention that freed memory was still
being used.  I'm going to commit a fix that clears the Screensaver and
DPMS timers at each regeneration.
David
Is this fix available as a single patch? I would like to check whether this also fixes 
Bugzilla's #776.

Thanks, Frank.

--
 Frank Giessler
 Klinikum der Universitaet Jena   Tel.: +49-3641-9 32 57 80
 Biomagnetisches Zentrum  Fax : +49-3641-9 32 57 72
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Capturing events from the root window

2003-10-28 Thread The Rasterman
On Tue, 28 Oct 2003 12:19:49 +0100 (MET) "Gerhard Gruber" [EMAIL PROTECTED]
(Bbabbled:
(B
(B I'm not sure if this is the proper forum for asking such a question, but I
(B found nothing so far on the web and so I hope to get some answers at the core
(B of X. If this is not the correct forum I would really appreciate it if you
(B could point me to where I can ask this question.
(B 
(B I'm developing an application which needs to filter all mouse events even
(B when it's window is not active. So I tried to grab the pointer and redirect it
(B to my app. This works, but the problem I have is that of course X doesn't
(B work as long as my app is active because it gets all events and the other apps
(B none. I was looking into the Xlib reference manuals if there is some way to
(B forward or return the XEvent to X again so it can be processed the normal way.
(B In Windows I do this with a hook function which allows me to specify that an
(B event is either passed on, or will be discarded after my hookfunction
(B returns. I wonder if there is a similar mechanism for X. I was looking into
(B GDK, as this would be my prefered way of doing it, but I would settle for a
(B Xlib solution as well if there is no other way.
(B So what I need is either a way to simply filter events and block them on
(B request (prefered) or grab all the input and forward it to the original owner
(B if I'm not interested in it.
(B
(Bbasically there is no choice. you can't do this. you need to POLL for the mouse
(Bposition in a timer to do what you want. you dont have the choice of swallowing
(Bor allowing a mouse move event (outside your window).
(B
(Bso you need to poll in a timer. you can then just query the mouse position on
(Bthe screen and do what you need to. this does mean a round trip per query and
(Bwont make for the nicest app on the planet.
(B
(Balthough i can think of an evil hack to avoid polling... very evil. so evil i
(Bwont mention it.
(B
(B Can this be done with X and/or GDK/GTK? If I know how to do it in X I could
(B probably figure out how to do it in GDK/GTK as well, but I've been searching
(B the web for several days now and I couldn't find anything helpfull. There
(B seem to be many workarounds for similar problems but none that works for me,
(B though.
(B 
(B Thanks for your help.
(B 
(B ___
(B Devel mailing list
(B [EMAIL PROTECTED]
(B http://XFree86.Org/mailman/listinfo/devel
(B
(B
(B-- 
(B--- Codito, ergo sum - "I code, therefore I am" 
(BThe Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
$B7'<*(B - $Bhttp://XFree86.Org/mailman/listinfo/devel

RE: C+T 69030 driver on powerpc

2003-10-28 Thread Egbert Eich
Rob Taylor writes:
   Has anyone sucessfully run the chips 69030 driver on powerpc
   based systems?
   I'm trying to get it running on a custon 7410 based board with two 69030's
   on,a nd i;'m seing soem off things:
  
   my /proc/pci gives me that:
Bus  0, device  18, function  0:
   VGA compatible controller: PCI device 102c:0c30 (Chips and
   Technologies)
   (rev 97).
 IRQ 18.
 Non-prefetchable 32 bit memory at 0xfa00 [0xfaff].
 Bus  0, device  19, function  0:
   VGA compatible controller: PCI device 102c:0c30 (Chips and
   Technologies)
   (rev 97).
 IRQ 18.
 Non-prefetchable 32 bit memory at 0xfb00 [0xfbff].
  
   at the moment i'm just attempting single head setup on device 18,
   however i
   find cPtr-PciInfo-memBase[0] is 0xff00 when calulating
   cPtr-FbAddress (in chipsPreInitHiQV) , rather than 0xfa00! Does any
   know any reason why xf86GetPciInfoForEntity would return incorrect
   information, or have i got the wrong end of the stick?
  
  
  well I now know why i get 0xff00 for the set up device - its MBASE0 is
  0x000 when we do xf86scanpci, and PCINONSYSTEMCLASSES(baseclass,
  subclass) is true hence pciCheckForBrokenBase gets called, which will set
  MBASE0 to  0x, and as only the top byte is writable (16Meg chunks)
  MBASE0 becomes 0xff00.
  
  not that this seems to help me much. i'm just more confused now!! why on
  earth would mbase0 be 0, if its in use and /proc says the device's memory is
  at 0xfa0???!
  
  really just posting this here incase anyone else ever wants to know... =)
  

Can you add some code to xf86scanpci() to find out why it's 0?
On PPC PCI config space data gets obtained thru the kernel, 
therefore it is even harder to understand.
Also could you please run 'scanpci -v'?

Egbert.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Capturing events from the root window

2003-10-28 Thread Gerhard Gruber
 I dont think you will need to poll  ...

I definittly don't want to poll. That's the ugliest solution that I can
think of. :) Also polling doesn't solve the problem of capturing the event as I
want it. If I want to take the event for myself then the app shouildn't get
it. The app should only get it when I decided that I don't need it. If I have
to go this way, then I would rather start a seperate thread with it's own
XEvent loop, which is much better for performance and doesn't waste time on
polling.

 you say you already manage to grab them , so then you only need to
 decide to sent them back or not.

Yes. 

 I the XLib function XSendEvent is capable to re-generate the
 uninteressting event`s and sent them

I already tried XSendEvent, but it didn't work out as I expected it. But
this may be more a problem of me then of the function. :) When I recive the
event it will be filled with all the event data. There are some field in it that
tells me the window where the event belong, but this will be alwayxs the root
window in my case, right? So when I send the event back with XSendEvent then
I will receive it promptly because I capture all events. The proper solution
would require 1) that I either determine where the event really belongs to
or to 2) send it back telling X that I'm not interested in it and it should
pass it on to where it belongs after me.

Of course 2 would be prefereable. In case of 1 I wonder how to do it. I
don't want to re-implement X in that I should decide which window is visible at
where the mousepointer is and send it on to that window (I will investigate
this though). I also tried to use XPushBackEvent and then disconnected from the
server, then made a small delay and reconnected again.  This also didn't
work out, because the event was lost, though I would have expected that it
should have been put back in the X queue.

 back to where it should belong ... just make sure that you also
 investigate all the other things of the event so that you can aftwards
 generate a proper new one ..

The problem is - how can I detect where the event originally belonged to?

 i believe this special hook part  is best done in pure Xlib ... maybe
 aftwards you can generate GTK - events again , but hooking all events
 should not a GTK thing

I implemented a small test app in pure X. I think I can work my way upwards
once I have a solution on that level. But it may not even neccessary. I could
also live without that and find another way to feed my app with the event
that I capture, so I don't think that this will be the problem (I could be
wrong on that, though :) ). As long as I don't have even one solution on any
level I don't know how to proceed. That's why I though this list would be a good
place to ask, because I thought that here should be many people familiar with
X. :)

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Capturing events from the root window

2003-10-28 Thread Robert Woerle
Gerhard Gruber schrieb:

I dont think you will need to poll  ...
   

I definittly don't want to poll. That's the ugliest solution that I can
think of. :) Also polling doesn't solve the problem of capturing the event as I
want it. If I want to take the event for myself then the app shouildn't get
it. The app should only get it when I decided that I don't need it. If I have
to go this way, then I would rather start a seperate thread with it's own
XEvent loop, which is much better for performance and doesn't waste time on
polling.
 

you say you already manage to grab them , so then you only need to
decide to sent them back or not.
   

Yes. 

 

I the XLib function XSendEvent is capable to re-generate the
uninteressting event`s and sent them
   

I already tried XSendEvent, but it didn't work out as I expected it. But
this may be more a problem of me then of the function. :) When I recive the
event it will be filled with all the event data. There are some field in it that
tells me the window where the event belong, but this will be alwayxs the root
window in my case, right? So when I send the event back with XSendEvent then
I will receive it promptly because I capture all events. The proper solution
would require 1) that I either determine where the event really belongs to
 

it should work with XSendEvent shoudlnt it ??
the man tells me
XSendEvent(*display*, *w*, *propagate*, *event_mask*, *event_send*)
 Display http://tronche.com/gui/x/xlib/display/opening.html#Display **display*;
 Window *w*;
 Bool *propagate*;
 long *event_mask*;
 XEvent http://tronche.com/gui/x/xlib/events/structures.html#XEvent 
**event_send*;
where 
*w*  Specifies the window the event is to be sent to, or 
*PointerWindow*, or *InputFocus

*

send it back telling X that I'm not interested in it and it should
pass it on to where it belongs after me.
Of course 2 would be prefereable. In case of 1 I wonder how to do it. I
don't want to re-implement X in that I should decide which window is visible at
where the mousepointer is and send it on to that window (I will investigate
this though). I also tried to use XPushBackEvent and then disconnected from the
server, then made a small delay and reconnected again.  This also didn't
work out, because the event was lost, though I would have expected that it
should have been put back in the X queue.
 

back to where it should belong ... just make sure that you also
investigate all the other things of the event so that you can aftwards
generate a proper new one ..
   

 



	

	

	

	

	

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


RE: C+T 69030 driver on powerpc

2003-10-28 Thread Rob Taylor
Egbert Eich writes:
 Rob Taylor writes:
Has anyone sucessfully run the chips 69030 driver on powerpc
based systems?
I'm trying to get it running on a custon 7410 based board
 with two 69030's
on,a nd i;'m seing soem off things:
   
my /proc/pci gives me that:
 Bus  0, device  18, function  0:
VGA compatible controller: PCI device 102c:0c30 (Chips and
Technologies)
(rev 97).
  IRQ 18.
  Non-prefetchable 32 bit memory at 0xfa00 [0xfaff].
  Bus  0, device  19, function  0:
VGA compatible controller: PCI device 102c:0c30 (Chips and
Technologies)
(rev 97).
  IRQ 18.
  Non-prefetchable 32 bit memory at 0xfb00 [0xfbff].
   
at the moment i'm just attempting single head setup on device 18,
however i
find cPtr-PciInfo-memBase[0] is 0xff00 when calulating
cPtr-FbAddress (in chipsPreInitHiQV) , rather than
 0xfa00! Does any
know any reason why xf86GetPciInfoForEntity would return incorrect
information, or have i got the wrong end of the stick?
  
  
   well I now know why i get 0xff00 for the set up device -
 its MBASE0 is
   0x000 when we do xf86scanpci, and PCINONSYSTEMCLASSES(baseclass,
   subclass) is true hence pciCheckForBrokenBase gets called,
 which will set
   MBASE0 to  0x, and as only the top byte is writable
 (16Meg chunks)
   MBASE0 becomes 0xff00.
  
   not that this seems to help me much. i'm just more confused
 now!! why on
   earth would mbase0 be 0, if its in use and /proc says the
 device's memory is
   at 0xfa0???!
  
   really just posting this here incase anyone else ever wants to
 know... =)
  

 Can you add some code to xf86scanpci() to find out why it's 0?
 On PPC PCI config space data gets obtained thru the kernel,
 therefore it is even harder to understand.
 Also could you please run 'scanpci -v'?

In case you missed my previous mail, it appears that mbase0==0 is something
to do with the as69030 kernel framebuffer driver i'm running. If i compile a
kernel without fbdev, pci probing works fine.
I've stepped though the failure case in xf86scanpci(). It's 0 because when
we read the config space from the device into devp-cfgspc.dwords, we read 0
for the word corresponding to MBASE0, so defintly seems like some kind of
hardware config level issue. Note that I have 2x69030's on this board, so
perhaps intersting stuff happens because of that. i note that only the 1st
device gets read as 0x, the second device gets correctly read as
0xfb00!

One solution I'm considering is to use the framebuffer interface to mmap the
device if the framebuffer driver is availiable, and using the current scheme
if not.

Unfortunatly I still get issues even with an non fbdev kernel. I think this
is due to the fact that the big-endian hack (+0x80) only really works on
a couple of HiQV chips. On the as69030, it uses 1st 8 Meg for Pipe A and 2nd
8 meg for Pipe B. There *is* a single  pipe mode where it will put a byte
swapped frame buffer at +0x80, but thats all (no registers), and
obviously that isn't much use.

So, I guess I'll be going though the driver and checking all its
byte-swapping macros are properly in place, stripping out the +0x80
hack, and just telling X the correct pixel bit ordering!

Make sense?

Rob

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Is it possible to move application displays between hosts?

2003-10-28 Thread John Duperon
Hello,

occassionally we have users login to RedHat Linux machines who have 
started applications that they would like to keep running in the 
background while someone else uses the machine.  So, say I start a 
program we have here for one of our microscopes and it is in the midst 
of processing data.  However, someone else needs to be on this machine 
to capture data.  Can I tell the machine to display the graphical 
interface for this program on another machine once the program has 
started?  I know it is possible to change the DISPLAY variable and xhost 
+ on the other machine.  But if the program is already running, is it 
possible to do the equivalent?  If this isn't possible currently, it 
would be a really great thing to have in the future.

Thanks in advance,

John

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Is it possible to move application displays between hosts?

2003-10-28 Thread Enver ALTIN
On Tue, 2003-10-28 at 18:05, John Duperon wrote:
 Hello,

Hi,

 occassionally we have users login to RedHat Linux machines who have 
 started applications that they would like to keep running in the 
 background while someone else uses the machine.  So, say I start a 
 program we have here for one of our microscopes and it is in the midst 
 of processing data.  However, someone else needs to be on this machine 
 to capture data.  Can I tell the machine to display the graphical 
 interface for this program on another machine once the program has 
 started?  I know it is possible to change the DISPLAY variable and xhost 
 + on the other machine.  But if the program is already running, is it 
 possible to do the equivalent?  If this isn't possible currently, it 
 would be a really great thing to have in the future.

Looks like a job for VNC (http://www.realvnc.com/).
-- 
 __
|  |
|  |  Enver ALTIN (a.k.a. skyblue)
|  |  Software developer, IT consultant
|FRONT |
|==|  FrontSITE Bilgi Teknolojisi A..
|_SITE_|  http://www.frontsite.com.tr/


signature.asc
Description: This is a digitally signed message part


Re: Is it possible to move application displays between hosts?

2003-10-28 Thread Måns Rullgård
John Duperon [EMAIL PROTECTED] writes:

 occassionally we have users login to RedHat Linux machines who have
 started applications that they would like to keep running in the
 background while someone else uses the machine.  So, say I start a
 program we have here for one of our microscopes and it is in the midst
 of processing data.  However, someone else needs to be on this machine
 to capture data.  Can I tell the machine to display the graphical
 interface for this program on another machine once the program has
 started?  I know it is possible to change the DISPLAY variable and
 xhost + on the other machine.  But if the program is already running,
 is it possible to do the equivalent?  If this isn't possible
 currently, it would be a really great thing to have in the future.

Generally, it's impossible.  However, GTK2 supports changing display.
I'm not sure if any GTK2 application can be moved (or how to do it),
or if the application has to do something explicitly.  I'm also not
sure about QT.

-- 
Måns Rullgård
[EMAIL PROTECTED]

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Is it possible to move application displays between hosts?

2003-10-28 Thread Mike A. Harris
On Tue, 28 Oct 2003, John Duperon wrote:

occassionally we have users login to RedHat Linux machines who have 
started applications that they would like to keep running in the 
background while someone else uses the machine.  So, say I start a 
program we have here for one of our microscopes and it is in the midst 
of processing data.  However, someone else needs to be on this machine 
to capture data.  Can I tell the machine to display the graphical 
interface for this program on another machine once the program has 
started?  I know it is possible to change the DISPLAY variable and xhost 
+ on the other machine.  But if the program is already running, is it 
possible to do the equivalent?  If this isn't possible currently, it 
would be a really great thing to have in the future.

Search google for the applications xmove and x2x, also vnc might 
be useful.


-- 
Mike A. Harris

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Capturing events from the root window

2003-10-28 Thread Gerhard W. Gruber
On Tue, 28 Oct 2003 15:53:39 +0100, Robert Woerle [EMAIL PROTECTED]
wrote:

it should work with XSendEvent shoudlnt it ??

I don't know. From what you told me I looked agina in the manuals and it
sounds like it should, but it doesn't.

Below is the code that I use in my small test programm. It grabs the pointer
events andthis works, as I recive all events no matter where I click, but I
played around with all settings of XSendEvent and I found no way where the
desktop resumed normal operation, as it should. My desktop runs at 1600x1200
this is why I have the if x = 1599.
---

#include stdio.h
#include Xlib.h
#include unistd.h

static int *
null_X_error (Display * d, XErrorEvent * e)
{
  static int already = 0;

  /* The warning is displayed only once */
  if (already != 0)
return (NULL);
  already = 1;

  printf (\n*** Warning ***\n);
  printf (Please, verify that there is not another program which grabs the
mouse\n);

  return (NULL);
}

int
main (int argc, char *argv[])
{
  Display *d;
  XEvent e;
  char *dn;
  long mask;

  dn = XDisplayName(NULL);
  if(dn == NULL)
   printf(Error getting display name\n);

  d = XOpenDisplay(dn);
  if(d == NULL)
   printf(Error!\n);

  XAllowEvents(d, AsyncBoth, CurrentTime);
  XSelectInput(d, DefaultRootWindow(d), ButtonPressMask | ButtonReleaseMask);

  XGrabButton (d, AnyButton, AnyModifier, DefaultRootWindow(d),
   False, ButtonPressMask | ButtonReleaseMask,
   GrabModeAsync, GrabModeAsync, None, None);

  XSetErrorHandler ((XErrorHandler) null_X_error);
  while(1)
  {
   printf(Waiting\n);
   XNextEvent(d, e);
   printf(Type: %u\n, e.type);
   mask = NoEventMask;
   switch (e.type)
   {
   case ButtonPress:
   {
if(e.xbutton.x != 1599)
{
 printf(ButtonPress: %u %u/%u\n, 
e.xbutton.button,
e.xbutton.x, e.xbutton.y);
 printf(Display: %08lX Window: %lu   Root: 
%lu  Sub: %lu\n,
e.xbutton.display, e.xbutton.window, e.xbutton.root, e.xbutton.subwindow);
 mask = ButtonPressMask;
}
   }
   break;

   case ButtonRelease:
   {
if(e.xbutton.x != 1599)
{
 printf(ButtonRelease: %u %u/%u\n, 
e.xbutton.button,
e.xbutton.x, e.xbutton.y);
 printf(Display: %08lX Window: %lu   Root: 
%lu  Sub: %lu\n,
e.xbutton.display, e.xbutton.window, e.xbutton.root, e.xbutton.subwindow);
 mask = ButtonReleaseMask;
}
   }
   break;
   }
// if(mask != NoEventMask)
XSendEvent(e.xbutton.display, InputFocus, False, mask, e);
  }

  return 0;
}

 


-- 
Gerhard Gruber

Für jedes menschliche Problem gibt es immer eine einfache Lösung:
Klar, einleuchtend und falsch. (Henry Louis Mencken)

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


turnning lcd on side for a display

2003-10-28 Thread ryan
I am trying to make X display as a landscape so I can turn a lcd monitor on it's side. 
Is this possible and if os could you point me to documentation of how to do so.

Thank You for your time and I look forward to hearing from you,


Ryan Housand
Scottshill Baptist Church
[EMAIL PROTECTED]

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: Capturing events from the root window

2003-10-28 Thread The Rasterman
On Tue, 28 Oct 2003 15:45:19 +0100 (MET) "Gerhard Gruber" [EMAIL PROTECTED]
(Bbabbled:
(B
(B  I dont think you will need to "poll " ...
(B 
(B I definittly don't want to poll. That's the ugliest solution that I can
(B think of. :) Also polling doesn't solve the problem of capturing the event as
(B I want it. If I want to take the event for myself then the app shouildn't get
(B it. The app should only get it when I decided that I don't need it. If I have
(B to go this way, then I would rather start a seperate thread with it's own
(B XEvent loop, which is much better for performance and doesn't waste time on
(B polling.
(B 
(B  you say you already manage to grab them , so then you only need to
(B  decide to sent them back or not.
(B 
(B Yes. 
(B 
(B  I the XLib function XSendEvent is capable to re-generate the
(B  uninteressting event`s and sent them
(B 
(B I already tried XSendEvent, but it didn't work out as I expected it. But
(B this may be more a problem of me then of the function. :) When I recive the
(B event it will be filled with all the event data. There are some field in it
(B that tells me the window where the event belong, but this will be alwayxs the
(B root window in my case, right? So when I send the event back with XSendEvent
(B then I will receive it promptly because I capture all events. The proper
(B solution would require 1) that I either determine where the event really
(B belongs to or to 2) send it back telling X that I'm not interested in it and
(B it should pass it on to where it belongs after me.
(B 
(B Of course 2 would be prefereable. In case of 1 I wonder how to do it. I
(B don't want to re-implement X in that I should decide which window is visible
(B at where the mousepointer is and send it on to that window (I will investigate
(B this though). I also tried to use XPushBackEvent and then disconnected from
(B the server, then made a small delay and reconnected again.  This also didn't
(B work out, because the event was lost, though I would have expected that it
(B should have been put back in the X queue.
(B 
(B  back to where it should belong ... just make sure that you also
(B  investigate all the other things of the event so that you can aftwards
(B  generate a proper new one ..
(B 
(B The problem is - how can I detect where the event originally belonged to?
(B 
(B  i believe this special "hook part " is best done in pure Xlib ... maybe
(B  aftwards you can generate GTK - events again , but hooking all events
(B  should not a GTK thing
(B 
(B I implemented a small test app in pure X. I think I can work my way upwards
(B once I have a solution on that level. But it may not even neccessary. I could
(B also live without that and find another way to feed my app with the event
(B that I capture, so I don't think that this will be the problem (I could be
(B wrong on that, though :) ). As long as I don't have even one solution on any
(B level I don't know how to proceed. That's why I though this list would be a
(B good place to ask, because I thought that here should be many people familiar
(B with X. :)
(B
(Bagain - see my other reply. you've found a can of worms that basically x doesn't
(Bdo. ou COULD do this with mouse button presses (XGrabButton) and the dot he
(BXAllowEvent thing... but not just the mouse moving in general. you'd hit a
(Blimitation of x. you'd HAVE to extend X itself with an extension to do what you
(Bare after (unless there is an extension of this i don't know of somewhere. i
(Bknow xtest wont do it for sure...)
(B
(B
(B-- 
(B--- Codito, ergo sum - "I code, therefore I am" 
(BThe Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
$B7'<*(B - $Bhttp://XFree86.Org/mailman/listinfo/devel

Re: Capturing events from the root window

2003-10-28 Thread The Rasterman
On Tue, 28 Oct 2003 13:13:06 +0100 Robert Woerle [EMAIL PROTECTED] babbled:
(B
(B Carsten Haitzler (The Rasterman) schrieb:
(B 
(B On Tue, 28 Oct 2003 12:19:49 +0100 (MET) "Gerhard Gruber" [EMAIL PROTECTED]
(B babbled:
(B 
(B   
(B 
(B I'm not sure if this is the proper forum for asking such a question, but I
(B found nothing so far on the web and so I hope to get some answers at the
(B coreof X. If this is not the correct forum I would really appreciate it if
(B youcould point me to where I can ask this question.
(B 
(B I'm developing an application which needs to filter all mouse events even
(B when it's window is not active. So I tried to grab the pointer and redirect
(B itto my app. This works, but the problem I have is that of course X doesn't
(B work as long as my app is active because it gets all events and the other
(B appsnone. I was looking into the Xlib reference manuals if there is some way
(B toforward or return the XEvent to X again so it can be processed the normal
(B way.In Windows I do this with a hook function which allows me to specify
(B that anevent is either passed on, or will be discarded after my hookfunction
(B returns. I wonder if there is a similar mechanism for X. I was looking into
(B GDK, as this would be my prefered way of doing it, but I would settle for a
(B Xlib solution as well if there is no other way.
(B So what I need is either a way to simply filter events and block them on
(B request (prefered) or grab all the input and forward it to the original
(B ownerif I'm not interested in it.
(B 
(B 
(B 
(B basically there is no choice. you can't do this. you need to POLL for the
(B mouse position in a timer to do what you want. you dont have the choice of
(B swallowing or allowing a mouse move event (outside your window).
(B 
(B I dont think you will need to "poll " ...
(B you just wait for them to come and then go on .
(B 
(B you say you already manage to grab them , so then you only need to
(B decide to sent them back or not.
(B I the XLib function XSendEvent is capable to re-generate the
(B uninteressting event`s and sent them
(B back to where it should belong ... just make sure that you also
(B investigate all the other things of the event so that you can aftwards
(B generate a proper new one ..
(B
(Bthis has issues all of its own. first. other peoples windows need to get the
(Bcorrect event at the correct location and time - which now won't be right as
(Bwindows may have been destroyed, created, shown and hidden, moved and resized,
(Braised and lowered, shape mask changed etc. in the meantime. remember you need
(Bto keep the list of shape rectangles of the window to determine if the mous is
(Binside or outside of it - this may change and you now have to poll every window
(Byou think might possibly contain the mouse for its shape mask and rectangles.
(Byou need to determine which window the mouse would be in and its offset in order
(Bto re-construct the event to send. your chances of getting this correct are
(Bgetting slimmer by the second, ESPECIALLY since X is an synchronous environment,
(Bby the time you query for things, it all may have changed server-side. you could
(Bgrab the server during every query... but now we're talking REALLY stupid code. 
(B
(Balso since you have the mouse grabbed to your window (unless you use a big
(Binput-only window on top of everything... another can of worms on its own), this
(Balso makes 1. menus not work cause other apps/toolkits will want to grab mice to
(Bmenu windows etc. for this, 2. "mouse bindings" of the wm wont work (alt +left
(Bmouse anywhere in the window wont move it). 3. to make a vague attempt to keep
(Bin sync you'll need to monitor the entire x window tree ALL the time... NOT fun
(Bor efficient. Also other apps might even ignore mouse move events with the
(B"send_event" flag set to 1. what you have there is a partially working system
(Bthat will only work for some things - and will need a LOT of code which will
(Bnever be accurate or correct anyway.
(B
(Bi can probably find more holes to poke in it all - but suffice to say however
(Byou look at it you'll NEVER get it right. your only choice to find out what the
(Bmouse is doing outside windows you're listening for events on is to poll. you
(Bcannot intercept and optionally not send an event.
(B
(Bthis is actually one of x's downfalls which should be fixed. the ability to
(B"monitor" events globally/in general without having to specifically select on
(Bthem on target windows. then add the ability to allow/disallow them to go to the
(Bnext guy listening (first in first served ala the wm?).
(B
(B what you then did is to make your own "hook - function" like you where
(B used to in windows ..
(B 
(B - i think
(B 
(B 
(B so you need to poll in a timer. you can then just query the mouse position on
(B the screen and do what you need to. this does mean a round trip per query and
(B 

Re: turnning lcd on side for a display

2003-10-28 Thread Tim Roberts
On Tue, 28 Oct 2003 15:07:17 -0500, [EMAIL PROTECTED] wrote:

I am trying to make X display as a landscape so I can turn a lcd monitor 
on it's side. Is this possible and if os could you point me to documentation
of how to do so.

Landscape is the normal orientation (wide).  What you want is portrait
(tall).  With many drivers, you can use
   Option  Rotate  CW
in the XF86Config file.  Note, however, that this often involves turning
off the hardware acceleration, since most graphics chips do not support
hardware rotation like that.
--
- Tim Roberts, [EMAIL PROTECTED]
  Providenza  Boekelheide, Inc.


___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


RE: C+T 69030 driver on powerpc

2003-10-28 Thread Egbert Eich
Rob Taylor writes:
  attached is 2 possible outputs of scanpci -v
  1st is before running server
  2nd is after!
  
  
  the server hangs waiting for a vertial retrace before reading ddc1, and
  needs to be SIGSEGV'd.
  the trace from the xserver, verbose 10 is also attached

I had this happen to me too, once, however it turned out to be a 
HW failure. After I commented out this code I ran into other problems.

You may comment out this code for testing, however one should try to 
understand why this code is causing problems.
 
  
  so I correct myself. looks like its nothing to do with the kernel
  framebuffer driver. it mroe to do with the state the card gets left in after
  being half configured *phew*!! so thats makes life a bit easier - i just
  need to fix the card configuration!
  

This should not happen. It can only happen when the Xserver has the
ROM BIOS mapped. Judging from your log that shouldn't happen.
Can you find out where it happens? You can hardcode a test for the
relevant PCI config space register and PCI tag in the appropriate
PciWrite() function and call a function you can breakpoint from gdb.
There are three functions for this purpose: xf86Break1/2/3().

Cheers,
Egbert.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


glxgears lock up MDK9.2 with radeon 9200

2003-10-28 Thread Emmanuel Allaud
   Hi all,
I just installed a MDK 9.2, and as the agpgart module seems OK with my 
nForce2 chipset, I also loaded DRI. All logs are OK, the dri modules 
load correctly; but if I launch glxgears it locks up solid (hard reset 
only to get rid of it).
I use the radeon driver of MDK9.2 for my radeon 9200 (from chaintech IIRC).
Have you heard of something similar ?
I kind of imagine that this could be because of agpgart which is not 
really happy with the nforce2 AGP feature.
Bye
Manu

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Back to working on cross compile for Au1100 mips CPU

2003-10-28 Thread Burt Bicksler
Hi,

After attempting to build XFree86 on my AMD Au1100 development board I was 
able to get a clean build up to the point of the final linkage.  I found 
that there is not enough memory available to link successfully on the 
development board.

So, I'm working on getting cross-compiling working correctly again.  Host 
system is SuSE 8.2 and I'm using the Timesys mips-el toolchain.

I've followed most of the information in the Cygwin notes on Cross 
Compiling, filtering out the things that appear to be Cygwin specific.  It 
is almost working, but I'm encountering a problem when the cc command 
attempts to invoke ld to link.

Everything appears to be working fine, the proper compiler is being 
invoked, include and lib paths up to this point all are pointed into my 
mips directories as would be expected.  But when ld gets invoked instead of 
the cross binary ld I'm getting my suse i486 version executed and it also 
appears that the suse i486 gcc-lib path is also being used.

I have cross.def set up with all include, libs, tools, etc., pointing to my 
mips cross-compile directories and tools.  I've created sym links for the 
cross-compile tools in the cross-compile bin directory as directed in the 
Cygwin notes.

I'm doing make World CROSSCOMPILEDIR=path to my cross compile bin dir

Looking at the generated xmakefile everything looks ok, as the path / tool 
references are there.  But I must be missing something since it is choking 
by running the wrong 'ld' executable and also referencing the wrong library 
path for gcc-lib.

Can someone suggest where I might look for an answer to resolve this problem?

Thanks,
Burt
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Get A Bachelor's Degree, Master's, or PhD - Classes Not Needed...bathsheba

2003-10-28 Thread Leah Fraser
Academic Qualifications available from prestigious NON–ACCREDITTED universities.

Do you have the knowledge and the experience but lack the qualifications?

Are you getting turned down time and time again for the job of your dreams because you 
just don't have the right letters after your name?

Get the prestige that you deserve today!

Move ahead in your career today!

Bachelors, Masters and PhD's available in your field!

No examinations! No classes! No textbooks!


Call to register and receive your qualifications within days!

24 hours a day 7 days a week!




203-286-2187 - USA




























zeru tsj


Re: 3D for SMI WAS: Re: XrandR

2003-10-28 Thread Alex Deucher
--- Robert Woerle [EMAIL PROTECTED] wrote:
 Hi
 
 I am now in contact with Keith packard and checked out his latest
 stuff ..
 it looks promising since there is already a SMI Server there ..
 unfortunately it crashes when i use the hw acceleration ...without it
 
 works ..
 
 
 
 Alex Deucher schrieb:
 
 there is a patch for support of the 731 in bugzilla:
 http://bugs.xfree86.org/show_bug.cgi?id=754
 No other drivers support roation in hardware at the moment, so it's
 up
 to you to implement it from scratch I suspect.  Keith Packard did
 much
 of the work for xrandr for PDAs.  You might want to look at the
 kdrive/tinyx servers for reference.
 
 Any chance you'd be interested in adding dualhead or 3D support? :)
   
 
 hmm .. i am no video guru ... also these are my first attempte`s with
 
 X-Server coding ...
 i did make a touchscreen driver and such stuff until now .
 
 Since i got the doc`s from SMI .. i have the reference to look at ...
 what is a good starting point for 3 D  ???
 is there any easy to read driver which i could derive the code from ?
 

It depends on the how the engine works and what features it supports. 
The r128 or i810/80/45 driver may be a good reference point.  The best
way to start is to copy another driver and then slowly fill in the
functions with SMI specific code.  I admit I'm no expert when it comes
to 3d though...


 
 Alex
 
 --- Robert Woerle [EMAIL PROTECTED] wrote:
   
 
 Hi
 
 I want to start implementing the Siliconmotion chips into the
 XRandR 
 extension ...
 
 Can someone point me to a chip which already supports this
 extension
 and 
 is able to rotate on the fly ??
 
 I recieved the hardware specs and PCI registers from siliconmotion
 and i 
 am ready to spent time on that ...
 i also revieved the doc`s for the latest  SMI 731 chip which is
 even
 not 
 supported at all at XFREE ...
 how do i get into that ...
 
 main issue is the XRANDR then comes the new 731 ...
 
 Cheers Rob
 -- 
 
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


[XFree86] Kerberos xfree

2003-10-28 Thread dmitry
What are the state of implementation of kerberos support in X? 
 
I try to compile X with flag 
 
HasKrb5  YES 
 
but it do not compiled. It wants very strange headers, which I do not found 
neither in mit-krb5, nor heimdal. 
 
What I ought to do to compile X with kerberos 5 support? 

___
XFree86 mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xfree86

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: [XFree86] Kerberos xfree

2003-10-28 Thread Matthieu Herrb
[EMAIL PROTECTED] wrote (in a message from Tuesday 28)
  What are the state of implementation of kerberos support in X? 
   
  I try to compile X with flag 
   
  HasKrb5  YES 

I'd say that it's basically unsupported. I don't think any X
developper is currently using kerberos. 
The kerberos IV code was tested by OpenBSD people, but they have not
yet tried to use the krb5 code. 

   
  but it do not compiled. It wants very strange headers, which I do not found 
  neither in mit-krb5, nor heimdal. 
   
  What I ought to do to compile X with kerberos 5 support? 

I've no idea. But if someone wants to work on this and submit patches,
he's welcome. 


Matthieu
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel