x11

Netbeans Forwarded over X11 Font Problem

I'm trying to forward my IDE, Netbeans, over ssh to the Xming server on my Windows Desktop. I'm able to get Netbeans to launch and run, but the fonts look terrible because they aren't being anti-aliased. I've uploaded a screenshot here. If I launch Netbeans from Gnome on the linux box itself, the fonts look fine, so it must be a probl...

How to set the mouse position under X11 (linux desktop)?

I'm wondering how to set the mouse cursor position under X11? Is it possible at all and if, where do I have to look for appropriate functions? X window system, KDE/Gnome/...? ...

XCreateWindow gives a window ID that clashes with already existing window

I have created a program that creates a window using XCreateWindow. This works perfectly on my system and many others but on many, it is causing a few weird problems. e.g. the ID that I got from it clashes with the id of the terminal from which the program is launched. In one such case, gnome-terminal also has the window ID of 0x2400001 ...

What configuration file sets $DISPLAY in Leopard?

According to this, for best results in Leopard my $DISPLAY variable should start with /tmp/launchd. Alas, my $DISPLAY variable is /tmp/launch-aLhnOW/:0 I do not set $DISPLAY in any of these ... /private/etc/profile /private/etc/bashrc ~/.bash_profile ~/.profile ... so I suspect there is some other configuration file that X11 is rea...

X11 libaries in OSX 10.5?

I have (I believe) a fairly standard 10.5 installation, and I'm trying to compile.. Well, I'm trying to compile T.38modem, which requires OPAL which requires pwlib which requires libX11. Kinda dumb, but whatever. The problem is that in /usr/X11/lib, I have the following: Brians-mini$ nol libX11.* lrwxr-xr-x 1 root wheel 14 Mar 3 2008 l...

How do I get my emacs to *always* use 6x13 on X11

I recently declared .emacs bankrupcy and reorganized my init stuff. In the process, I ripped out all the hacky font selection stuff I had accrued over the years, figuring there are probably easier ways to accomplish what I want in the most modern version of emacs. GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) on a GNU/Lin...

X11 / X - linux desktop software, I don't understand how this fits together

Hi, I recently started using Linux (where I work is a Microsoft shop, so I only code in C#, work with MS products etc). I'm trying to understand at a high level how some basic things in Linux hang together. I've been reading www.linfo.org which is an amazing resource. Anyway I've never quite got what X is. From reading this article ...

Sending string (of characters) to active window

I wrote a simple program that reads the characters from external device (bar code scanner) from serial port (/dev/ttyS1) and feeds it to the currently active window (using XSendEvent). Program works fine on faster computers, but on slow ones the situation happens (very often) that characters don't get received in the same order they wer...

Cannot connect to X server :0.0 with a QT application

Hello, Compiling on Fedora 10. I have just started my first qt GUI application. I used all the default settings. Its just a simple form. It builds OK without any errors. But when I try and run the application. I get the following message: Starting /home/rob/projects/qt/test1/test1/test1... No protocol specified test1: cannot connect ...

How to change focus in X-Windows?

I am working on old Motif-based application for Linux. I want to be able to programmatically change the active window of our application. I can redirect the input by using XSetInputFocus() function and the keyboard input start to go there, but XReconfigureWMWindow() and XRaiseWindow() functions just don't work. I've read that Window Ma...

How do you hide the mouse pointer under Linux/X11?

How do I hide the mouse pointer under X11? I would like to use the built in libraries in order to do this and not something like SDL (SDL_ShowCursor(0)) or glut (glutSetCursor(GLUT_CURSOR_NONE)). Also, the mouse pointer should be hidden no matter the pointer location, not just in its own window. ...

"No X11 DISPLAY variable" - what does it mean?

Hello, I am trying to install a program (a Java application) on my linux machine (I am using Slackware). I have received the following mistake, and I do not understand it. Could you advise me how to approach the problem? I am not sure whether this is a kind of question I could ask here, because it is not exactly a programming question, ...

The guide to X window system

The X window system (and its popular implementation X.org) is amazing and complex too - client server model, forwarding the display to other systems, support for wide array of devices, primitive drawing functions. Moreover, the many ways to configure. However there is no definitive guide to it which can teach it hands on. Can you please...

What is the minimum amount of tweaking needed to get QClipboard::setText() to work under X11?

After recommending uclip I found out that it does not work for copying. I started debugging this, first converting from QT3 to QT4 to see if that helped, but it did not make any difference and eventually I found that it is a know bug but marked as "Won't fix": This is a side effect of setting the clipboard immediately after creating ...

How do the Server Extensions work in X?

Let's take an example. When I run: xkbprint $DISPLAY keyboard.ps what happens in the system? I would like to know how the X really work because I regularly get nasty error reports such as Fatal Error: Cannot load geometry for /tmp/launch-NawGIk/:0 Exiting I know that the X11 was designed in a way that it i...

Docked Panel on a Single X Window Workspace

I am using the Xlib function XChangeProperty function to create a docked panel window (like gnome-panel). I am setting these properties: _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_STRUT to a height, and _NET_WM_STRUT_PARTIAL to a height/full width. It is behaving as expected: screen space is reserved & other windows do no...

Remote X Display with Fedora 10 running KDM and XFCE

I am developing a JSF web application on a Windows box using Emacs as my editor but I far prefer to use Emacs in a Linux environment. In the (somewhat distant) past it was a no-brainer to use a remote X display to accomplish this very useful programming aid. Cygwin helps out somewhat but true remote X is the preferred solution. Howeve...

What does the command "cat /tmp/dir/:0" do?

When I did the command above, X11 opened. I am perplexed. Did I run it? How can I be sure that I do not run any program when looking at things? I really hate the idea that reading a text file may execute a program. How is it programmable possible to make programs that executes when running a simple cat-command, or similar command? ...

Persistent Windows in PyGTK

Is there a way to force a gtk.Window object to ignore the Window Manager's show/hide commands, such as "iconify" and "show desktop?" I'm trying to create a persistent window, stuck to the desktop, that will not disappear with all other windows when the desktop is exposed. EDIT: I guess what I'm wondering specifically is whether or not ...

How can I specify a display?

When I run some programs over SSH, such as "firefox &", I get an error Error: no display specified I would like open many displays, still showing the stdout of each program. Initial Question: How can I can specify the display to get a many-displayed program? Pablo Santa Cruz gives me the following code as a solution. I do not...