x11

How would you build a "pixel perfect" GUI on Linux?

I'd like build a GUI where every single pixel is under my control (i.e. not using the standard widgets that something like GTK+ provides). Renoise is a good example of what I'm looking to produce. Is getting down to the Xlib or XCB level the best way to go, or is it possible to achieve this with higher level frameworks like GTK+ (maybe ...

Possible to use pyplot without DISPLAY?

Hello! I'm working remotely on a machine that's pretty restrictive. I can't install any software, and it won't accept my X11 session, so I have no display. The machine currently has pylab installed, and I'd like to use it to plot something and then save it for viewing on another computer. However, it seems there's no way to even create ...

how to dynamic swf Edit in flex.

hi frd i have make one test.mxml.i have add or load one "demo.swf",my proble is that how to change "swf.swf" mean change color,height,width,alpha or etc. to this main swf. pls help if posible then send code how to work. ...

X11: How do I REALLY grab the mouse pointer?

I've implemented a horizontal splitter widget in Xlib. I'm trying to grab the mouse when the user clicks & drags on the splitter bar (so that the user can dynamically move the split & thus resize the windows on either side of the splitter bar). I've used XGrabPointer() after receiving a left click, in hopes that all future mouse motion...

Detection screen disconnection in linux

Hey Guys We have a nasty little problem. In short we can detect if a screen is connect when x11 boots (we do this by looking at the log - Xorg.0.log), but we are having trouble detect when are screen is disconnected while the machine is running (ie post x11 boot) Any one have any ideas? Cheers ...

Qt support for VNC

i want to test whether qt is supporting VNC or not. For that i have written a small layout program using Qt library. the source code for the layout program is as follows: layout.cpp #include <QApplication> #include <QHBoxLayout> #include <QSlider> #include <QSpinBox> int main(int argc, char *argv[]) { QApplication app(argc, ar...

Dynamic loading of shared objects using dlopen()

Hi, I'm working on a plain X11 app. By default, my app only requires libX11.so and the standard gcc C and math libs. My app has also support for extensions like Xfixes and Xrender and the ALSA sound system. But this feature shall be made optional, i.e. if Xfixes/Xrender/ALSA is installed on the host system, my app will offer extended fu...

X11 and ARGB visuals: does DefaultDepth() never return 32?

Hi, I'm establishing a connection to the X server like this: display = XOpenDisplay(NULL); screen = DefaultScreen(display); depth = DefaultDepth(display, screen); I'm wondering now why "depth" is always set to 24. I would expect that it is only 24 when compositing is turned off, but in fact, it is still 24 even when I turn on composi...

WebDriver with firefox-x11 on Mac

I am trying to run a headless test for a web application using WebDriver on Mac OS X 10.6.3. My plan is to run firefox-x11 with Xvfb, but WebDriver is unable to launch firefox-x11. My code is: System.setProperty("webdriver.firefox.bin", "/opt/local/bin/firefox-x11-devel-standalone"); WebDriver browser = new FirefoxD...

How to send a keystroke to a x11 vnc session (xtightvncviewer)

I need to press a ceratin Key after setting up a server connection via xtightvncviewer in order to make an automated screenshot. Can i pass it with the startupscript? ~/VNC# xtightvncviewer myserver.dyndns.org -bgr233 -passwd /root/.vnc/passwd ...

How do I find a window at a certain point on the screen for screenshot/screen-recording purposes?

The title says it all. I'm looking for a way to do what the equivalent of WindowFromPoint and GetWindowRect do, in Carbon/Cocoa and X11. WindowFromPoint - http://msdn.microsoft.com/en-us/library/ms633558%28VS.85%29.aspx GetWindowRect - http://msdn.microsoft.com/en-us/library/ms633519%28VS.85%29.aspx ...

Is there a way to enumerate the open windows on Mac and X11?

Basically, I am looking for something like Win32's EnumChildWindows on Mac and X11, which takes a handle to a window and returns a list of its child windows. ...

Quartz Window Services equivalent for Windows and X11?

What is the equivalent of Quartz Window Services for Windows and X11? I want to be able to capture individual windows with their decorations, shadows, etc., completely independent from each other. Basically what the Son of Grab example is able to do. http://developer.apple.com/mac/library/samplecode/SonOfGrab/Introduction/Intro.html Als...

Starting x11vnc remotely when X server is already running

I have a ubuntu linux machine that I have already logged into and X server is running (it is pass the login manager like gdm). I can access this machine through ssh. My goal is to start x11vnc on this machine and attach it to the X server that is already running. When I ssh into the machine and start x11vnc, it says: X11 was unable to ...

example code for Xorg/X11 record extension fails

I'm compiling a basic example (as much as using bare X could be simple...) using the X11's RECORD extension on the latest version of Ubuntu, and I'm getting the following error: RECORD extension for local server is version is 1.13 X Error of failed request: XRecordBadContext Major opcode of failed request: 135 (RECORD) Minor opcod...

How to get another application window's title, position and size in Mac OS without Accessibility API?

How can I get window's title, position and size if it does not support Accessibility API? Accessibility Inspector does not see it at all. Say, it's a xterm window in X11.app (X11->Applications->Terminal). ...

R: building a simple command line plotting tool/Capturing window close events

I am trying to use R within a script that will act as a simple command line plot tool. I.e. user pipes in a csv file and they get a plot. I can get to R fine and get the plot to display through various temp file machinations, but I have hit a roadblock. I cannot figure out how to get R to keep running until the users closes the window....

Copy window content between applications on Mac

In my application I have a NSWindow with some drawing which is quickly changing (i.e. animation or video). Also I have another application, emulated via X11, which created GtkWindow. How can I copy all the drawings from the first Cocoa window to the second Gtk one in real-time? Or, let me better divide the question on two parts: How...

XRecord not getting ButtonPress/ButtonRelease events

Hey all, I'm trying to write a quick program that uses XRecord, and I am having difficulty setting it up to catch Button Presses. I get the first event, the XRecordStartOfData, but not any other events. Is there a problem with my code, or maybe my package set-up? I'm running Jaunty, and my xorg package is the most recent (1:7.4~5ubuntu1...

screen recording in x windows system.

Hi everyone, can anybody tell me how to record screen activities for specified amount of time. Look i have to choose for x only. I know xwd is there to dump screen, can it be extended to record the screen. No fancy debian tools and image magick utilities please. ...