Simulating background X11 events


 
Thread Tools Search this Thread
Top Forums Programming Simulating background X11 events
# 1  
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.
# 2  
Old 05-12-2011
I find it difficult to believe that the only way to use this application is to fake mouse clicks. What is it?
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 05-13-2011
Acually it is something like X11 redirection to a remote host, it is that the application you are running is a normal app that can be executed remotely.
I want something similar but in my case the client does not understand about X11 so I need to simulate the events to do the app to behave as usual without changing the code at all.
# 4  
Old 05-15-2011
May be I was not clear enough. I need to do it with fake events because the client does not work with X11. And I would like the events to be submitted to only one specific instance of the server each time that's why I need them to be in background.

And thank you for your reply!
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. 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

2. 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

3. UNIX for Dummies Questions & Answers

simulating kernel panic

How can a kernel panic be simulated? (5 Replies)
Discussion started by: proactiveaditya
5 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. 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

6. 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

7. 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
Login or Register to Ask a Question