x11

Mac OS X Window Server vs. X11: the insane task.

Dedicated to all who likes low-level Window Server (CoreGraphicsPrivate.h, etc), X11 on Mac, SIMBL and other crazy stuff :) There's a simple X11-emulated application on Mac (like xterm, xeyes and so on) with one window. While running, X11 somehow creates a native Quartz window to represent this emulated application, and this window is a...

How to create an inaccessible window on Mac OS?

I mean a window which will not be accessible via Cocoa, Carbon or other CoreGraphics API for obtaining NSWindow *, WindowRef and others. Like X11 application on Mac does. Such a window that if you pass its window ID to [NSApp windowWithWindowID] or HIWindowFromCGWindowID() they both return NULL. Thanks! ...

Tk: Event for entering with mouse button held down

I'm writing a video game mapping program in Ruby that has uses Tk for GUI. To give you some background, the level map ($Map) is a large TkCanvas covered with TkcImages - one for each tile in the level. I wanted to set it up so that the user could edit the level by clicking and dragging the mouse around to paint tiles. So I figured I c...

How do I detect the currently focused application?

I'd like to be able to track which application is currently focused on my X11 display from Python. The intent is to tie it into a timetracking tool so that I can keep track of how much time I spend being unproductive. I already found this code at http://thpinfo.com/2007/09/x11-idle-time-and-focused-window-in.html: import Xlib.display d...

Using a LGPL'ed library with my MIT/X11 licensed PHP script

Hi, After having read several posts regarding the inclusion of LGPL'ed libraries with software that is licensed under another license than GPL or LGPL, there is still one point that confuses me. The way I understand it, there should normally be no problem to include the .php-files (and the README and the LICENSE files) in my distributi...

How can I compile X11 statically?

I'm compiling parallel C code on a cluster (HECToR). Although I won't be running any parallel jobs interactively, my code contains some references to X11 functions which are used when it's run sequentially. The cluster I'm using doesn't support shared libraries, which rules out X11, at least in the way I've been using it so far. Could ...

automated ui testing / X11 framebuffers / hardware acceleration

Hi fellow SOers i'm working on a automated UI testing environment, right now it works pretty decent. The basic idea is that i create a virtual framebuffer instance with: Xvfb :1 -screen 0 1024x768x24 -fbdir vfb_test/fbdir & then, to run an application inside it (say, xcalc) i would do export DISPLAY=localhost=1.0 xterm -e '/usr/X11/...

M-f, M-b bindings not working on Mac X11 (through NX)

Business as usual: I've logged into my Linux machine from my MacBook Pro using NX, opened a terminal, and ... key bindings with M- (Meta-) do not work. (Talking about bash, of course.) Wait for it. I'm using a PC keyboard hooked up to my Mac (I cannot work on a cramped laptop keyboard). So I decided to investigate: used xev to capture ev...

[Solved] How to change Keyboard Layout (a X11 API solution)

I want to change keyboard layout in Linux by programming, What X11's API function does this? ...

c code for perpetually changing center colour in xeyes(terminal)

i'm trying to write a c code which opens the xeyes application and then those eyes keep changing its color constantly for a particular eriod of time.. i tried to achieve this by executing xeyes with one center color, adding a delay of 3 seconds, killing the process, and opening xeyes with another center colour and so on inside a loop. ...

Make alt key work when using NX client on OSX to Ubuntu 10.04 host?

I am using NX Client on Mac OS X 10.6 to access my Ubuntu 10.04 machine. I would like to use the Option/Alt key to Alt-Tab in the window manager and as the Meta key in Emacs. Some searching on the internet suggests that I set my OSX ~/.Xmodmap file to: keycode 66 = Alt_L clear Mod1 add Mod1 = Alt_L Alt_R Or: clear Mod1 clear Mod2 k...

X11 Feature for MS Windows

Hi, For decades, X11 has provided the possibility to have many virtual desktops that can be accessed by different people from different machines. The virtual desktops are thus independent of the real physical desktop. I'm wondering whether there is something similar already on MS windows OS. I would think this could be easily done if v...

Why are static X11 apps failing on other machines?

I built X11R5 libs statically on a 32-bit Fedora Core 9 machine. Then I built an app which uses X11 and linked it statically. So far, so good. ldd reports it's a statically-linked app. I can run it locally just fine. But when I copy it over to a 64-bit FC9 machine, it fails as follows: assistant.static: xcb_io.c:228: _XSend: Assertion `...

Is there a version of Fixed 6x13 bitmap font with less whitespace (line spacing 0.8)?

I think the fixed 6x13 font, FixedMedium6x13.dfont, the default in X11, is the best programming font. All the others that people gush about (Consolas, Inconsolata, Proggy, Monaco) just aren't as compact (without sacrificing readability). Or maybe I just like it. For the purposes of this question, assume we want nothing less than the X11...

Qt + XCompositeRender problem

I want to render the contents of the window in to QWidget ( or QPixmap ) using XComposite and XRender. The Issue I'm facing is that I can't get the picture be rendered in the QWidget. The code below has been written using the following tutorial: http://ktown.kde.org/~fredrik/composite_howto.html The window ID is hardcoded, so there can b...

preventing window maximisation/minimisation in x window system

i'm writing some low level window code for a window in x (in c++), and I want to prevent the user from either maximising or minimising the window. i don't mind whether this is done by rejecting the request to resize, or by removing the buttons themselves. however, i am tied to x and can't use qt or other higher-level libraries which i kn...

OpenGL without X.org in linux

I'd like to open an OpenGL context without X in linux. Is there any way at all to do it? I know it's bossible for integrated intel graphics card hardware, though most people have nvidia cards in their system. I'd like to get a solution that works with nvidia cards. If there's no other way than through integrated intel hardware, I guess...

Why is DirectFB not more widely used in GNU/Linux? Are there crippling limitations to it that don't exist in X11?

Hi, As far as I understand, DirectFB offers hardware acceleration for many kinds of graphics cards. Additionally, it's smaller, faster, and uses up less memory than X11. Why then, is it not more mainstream than it is now? Here's what I'm really unsure about: Do common GTK+/Qt programs need to be ported to it? On the DirectFB site, ther...

Using GVim on Windows to edit remote Linux files?

Is it possible to use gvim to edit remote Linux files if I am running Windows? To elaborate, I would like to connect to the Linux server via Putty and then use my local gvim instance to edit the files on the server -- Is this possible? It seems x11 forwarding (via xming?) might be the solution but I cannot get it to work. The remote s...

Is it possible to run GTK+ apps without GNOME, or the likes?

Hi, I was wondering if this was possible. Mostly I want to understand what GNOME does exactly? Couldn't one just run applications, given the availability of GTK+, and of course X11? Of course, I'm not sure (which is why I'm asking the question), but it looks to me that GNOME just "organizes" the GUI to make it more of a desktop, and of...