[Xpert]help, about NoEXpose Event

2002-08-12 Thread Martin Ding
I use RECORD extension to get the protol data between XServer and XClient. In some cases, only NoExpose Event is sent to XClient. For examples, open netscape and enter a web site. The page has some flash, that is, some place keep changing in the page. in that case, I do nothing. Now

[Xpert]Reply code

2002-08-13 Thread Martin Ding
in X, there are many Request, and I could get X Request from Xproto.h. For the core request, it begin from 1 and end with 127. But X Reply code is only marked as 1    nomorl Reply 0    Error   But there are many different Reply struct, do they all  have the same reply code?   I gu

[Xpert]how to get display info

2002-08-19 Thread Martin Ding
Hi All,     I intercept request between Xserver and XClient. However, among them no display infomation contained.     For example, if there is a intercepted request: xCopyAreaReq from which sourcr/destination drawable is obtained, then how can I know where the two drables locates in

[Xpert]Why No Expose Event occur?

2002-09-01 Thread Martin Ding
Hi all,         I want to receive Expose Event during the program. The problem is that in some case no expose event occured.     I drag a window over some windows. If the obscured window is a common window, when some part of the window is exposed, it will generate Expose Event. But

[Xpert]X_PolyText & X_ImageText

2002-09-02 Thread Martin Ding
Hi All     Is there anyone studied the X request about X_PolyText and X_ImageText? As you know XDrawString/XDrawImageString may generate these requests. And X server may draw a background rectangle for string showing.     Now the problem is how can I get the background rectangl

[Xpert]what's exact meaning of request length

2002-09-03 Thread Martin Ding
I recently study request but meet more problem. Now the meaning of request length puzzled me. For example, the request of X_ImageText8   typedef struct {    CARD8 reqType;    BYTE nChars;    CARD16 length B16;    Drawable drawable B32;    GContext gc B32;    INT16 x B16, y B16;}

[Xpert]about request process

2002-09-05 Thread Martin Ding
Is there anyone familiar with RECORD extension? I encounter a problem make me sick. During the XRecordInterceptProc, I intercepted a request X_ImageText8. To get the background the string has occupied, I need to use XQueryTextExtents (or XTextExtens and XQueryFont) to get the width and

[Xpert]about map state

2002-09-13 Thread Martin Ding
I use XGetWindowAttributes to get window's map state. There are 3 state: IsUnmapped, IsUnViewable, IsViewable. what's the difference among them. Does Mapped window is viewable? If yes, IsUnviewable means what?   I search the xlib functions, but failed to find one to be used to cha

[Xpert]netscape in record extension cause X Server crash

2002-09-19 Thread Martin Ding
Has anyone here ever used RECORD extension? From My test, when I start RECORD extension and begin to intercept protocol data, then start netscape, after a while, X Server crashed! Is RECORD extension stabled? or something I hadn't pay attensions? Thanks in advance!

[Xpert]about clear

2002-09-28 Thread Martin Ding
Hi,     I try to catch the request the client sended. most of  them can be recognised.     However, in a terminal, I type "clear" command to clear the characters, no suitably request find.     I guess the related xlib function may be clearwinow or copyarea or cleararea, but none look

[Xpert]what will client report to server about window's frame changing?

2002-10-09 Thread Martin Ding
If just switching 2 windows by clicking, we only see these 2 windows changing their frame(such as title bar become bright or dim), while their content changing nothing. So, How does client make server do this? I mean how do make server only change window's frame? and which request sent

[Xpert]How to debug extension?

2002-10-10 Thread Martin Ding
I met a problem about one extension, which contains server side and client side. I just doubt the extension has some problem. But reading source code make me sick and faid to find anything I need. So, Is there any way to debug the extension? For example, XTEST extension.

[Xpert]how Can I get GC from GContext

2002-10-11 Thread Martin Ding
well, Get GContext from GC is very easy. But I only got GContext and need GC information to do something, such as get a line's width from GC. How Can I get GC information only in client side? I mean not searching in Server side

[Xpert]Re:How to debug extension?

2002-10-14 Thread Martin Ding
    Thank you for giving such a nice explanation!     Yes, I have read xnee source code and find the work_round you marked works fine with avoiding X server crash.     I have tested RECORD in Solaris. in U5 with os 5.9, Xserver must be crashed when launch large program like netscape

[Xpert]About RECORD extension

2001-12-02 Thread Martin Ding
hi,I everyone! I am new here! And I got a problem in using RECORD extension. I hope the extension can record the changed area of screen when I do screen sampling. And I found the recorded data is sended throught the callback function. But what puzzleed me is that I can't find the coordinates and w

[Xpert]About audio sampling rate

2002-11-11 Thread Martin Ding
Hi all     Does unix support 22KHz and 44KHz frequencies sampling rate in Audio?     Or is just just related to the sound card installed in the OS?