Sponsored Content
Top Forums Programming Simulating background X11 events Post 302521926 by benderz on Thursday 12th of May 2011 07:47:48 PM
Old 05-12-2011
Simulating background X11 events

Hi everybody!

I've following this forum for a while but now it is my turn to do a question since a did not find the answer anywhere (I've been searching for days and there is no way).

I am working on a client-server platform where the server renders 3D models and sends images to the client but the client can interact with the models and that interaction is calculated, again, in the server. The client does not know anything about X11 (it can be any platform) but sends messages to the server that are like "pseudo-events" and the server intercepts them and simulate X11 events, i.e. to move the model with a mouse movement simulation. I have to do it this way because being a server has to be transparent to the app below and the only way I found is to make it believe the events are from the user simulating them with Xlib.
The thing is that I would like to simulate events in background. I mean, if I want to move the mouse I want it just for one instance of my server not for the entire O.S.
I have been doing this with XSendEvent or XTestFake* but that is not what I would like because it sends the event for the entire O.S. (and catches it the focused window , normally).

I do not know if to use Xlib is the best way to do that but for now is the only way I know. I am open to any other solution.

I hope I explained myself clearly.

And thank you in advance.
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

simulating a menu using shell programming like in windows.

Hi Friends, I would like to write a shell script in unix which displays a menu. The options in the menu needs to be chosen using the navigation keys(up arrow or down arrow). At present I am entering the menu option number for the option to be chosen. Can anybody give me an idea about how the... (1 Reply)
Discussion started by: malini
1 Replies

2. IP Networking

Simulating Router Link Removal

I am trying to do a small simulation in which there are three-four routers. Initially I setup some traffic between them using some link capacity of the lines between the routers and after that, I want to cut out one of the links and observe the traffic flow. Is this possible using any tool? (3 Replies)
Discussion started by: Legend986
3 Replies

3. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies

4. UNIX for Advanced & Expert Users

Simulating scp through ssh

How to simulate scp command using ssh? (5 Replies)
Discussion started by: vickylife
5 Replies

5. UNIX for Dummies Questions & Answers

simulating kernel panic

How can a kernel panic be simulated? (5 Replies)
Discussion started by: proactiveaditya
5 Replies

6. Shell Programming and Scripting

Sending key events to background script

Hi, short summary: I need to send keystrokes from USB keyboard to background (bash-)script. I guess I have to use read on the right devive board but how and which? My details: I got a small home server with some VMs using KVM/Qemu, all are suse 11.3. But in general I work on a client... (0 Replies)
Discussion started by: Snowman
0 Replies

7. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies
libgdk-x11-2.0.3(3)					 Introduction to Library Functions				       libgdk-x11-2.0.3(3)

NAME
libgdk-x11-2.0 - GTK+ Drawing Kit API DESCRIPTION
The libgdk-x11-2.0 library is an implementation of the GTK+ drawing kit for the X11 windowing system. It is used by GTK+ for low-level drawing operations. Most applications will not use GDK directly, but will use GTK+ components (see libgtk-x11-2.0(3)). To access the API documentation, you must install the developer version of the package. FILES
The following files are used by this application: /usr/lib/libgdk-x11-2.0.GTK+ Drawing Kit API shared library /usr/share/gtk-doc/html Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-base-libs SUNWg- | | |nome-base-libs-64 | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
libgdk_pixbuf-2.0(3), gdk-pixbuf-csource(3), libglib-2.0(3), libgobject-2.0(3), libgtk-x11-2.0(3), X11(5) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 libgdk-x11-2.0.3(3)
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy