x11

X11 unable to maximize applications when no window manager is used

We have a Linux based system that does not use a Window manager. When we start certain applications (for instance Firefox) from a terminal window (e.g. Firefox &) we find that no matter what we do, we can't get the application to display full screen. If we run xrandr, it shows the default resolution is 1280x1024, but when we try to max...

to create X window(X11) in java swing and to get its id

Hi Can anyone help me in creating an X11 window in java swing using eclipse?And also the function to get the x11 id also.What are the basic requirement for creating an X11 window in java. ...

Running a GTK+ application on a Linux machine, from Windows

hello, I have Installed GTK on a Linux machine. I am connecting To Linux Machine from a Telnet Session to compile the GTK programs From A Windows Machine. I am using Cygwin on Windows Machine. but i am not able to see GUI output of my GTK program on my Windows Machine. When i run program from my terminal i get this error: (helloworld...

Problem with R rendering base Graphics in CentOS 4

Hi we're trying to get R with the standard gui loaded onto CentOS 4, and under certain users R will not render certain graphics. When logged in as root the graphics render, but under the restricted user they don't. The graphics don't render with the error: > testdata <- rbind(c(1,2,3,4,5,6),c(3,4,5,4,6,2),c(3,6,7,2,2,1),c(5,4,9,8,9,1)...

Windows API function equivalents (SetCursorPos, GetCursorPos, mouse_event, keybd_event ...) for Linux (X11)?

I was wondering if there were equivalents of the above mentioned functions for Linux (X11) - I can't seem to find them. ...

How to run an X program from outside the X session (e.g. from the console or SSH)

Without being the person logged in at the console, how do I run an X application and have it display on that X session? Assume I am either root, or I am the same user who logged in, so in principle I have persmission to do this. But how do I convince X of this? Some examples of situations like this: Log in with SSH and run a program t...

Initial emacs position in KDE

I use emacs 23.1.1 with KDE 4.3.1. I have set (initial-frame-alist) and (default-frame-alist) to make my windows come up where I want. But my initial window does not come up where I want. My initial window comes up with one font, changes font, changes size, moves (to where I want) and then finally repositions to somewhere else. It's thi...

Book Recommendation for modern X11 Unix GUI programming?

I have the old 8book O'Reily Serious "The X Resources" in my bookshelf bought about 15 years ago. Is there any book which is explaining the new technologies and X11 extensions like XDnD, Xinerama, XCursor, XRandR, XRender, XIM + Input Methods etc. maybe with a chapter (but not more) of GTK and QT. I'm not even asking for Compiz and ot...

How can my shell script control the placement of a zenity window?

I'm using zenity to post a simple notification when my spam-filter daemon filters a group of messages. Currently this message is posted to the middle of the screen, which is obtrusive. I want to post it to the upper left corner. However, zenity does not honor the -geometry option which is supposed to be standard for all X applications...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how? ...

XWindows- window with round edge

how to create a window in x-windows with elliptical corners. ...

XSelectInput -- keypressed/keyreleased events not firing

I have the following code. For some reason the key-related events aren't firing. FocusChanged is firing fine. I'm using Gnome. Could it be that Gnome's intercepting these and not passing them through? I mean, some people may regard this as a security risk (keylogger), so it's a possibility. void PluginKeyboard::PluginPoll() { Displa...

Building a Window Manager

One of my new home projects will be a simple Window Manager, but before start I need to know some things: Which is the best language to do this? Where to get some resources to learn? ...

Why does emacs in an xterm on a Mac interpret c-h as backward-delete-char ?

C-h is correctly interpreted has 'help' in Carbon Emacs.app and using /usr/bin/emacs in Terminal.app. I'm sure I'm missing something simple here. Emacs describe-bindings shows c-h is rightly mapped to help. So it seems like xterm or X11 sees a c-h keypress and then sends a backspace to emacs. Can this behavior be changed? ...

How to query X11 display resolution?

It seems like an simple problem, but I can't find the answer: How do you query (via X11) what monitors exist and their resolutions? ...

Setting the default location for opening windows in an Xvfb environment

This problem is driving me crazy. Maybe the experts at Stack Overflow can help. I want to open an application in Xvfb and to have it always positioned at x,y=0,0 (Top left corner). The application does not take any parameters, allowing it to reposition the opened window itself. Is there a way to set the default window position in a X-...

How to copy to clipboard with X11?

Using the frameworks on OS X, I can use the following to copy a PNG to the pasteboard (in C — obviously I could use NSPasteboard with Cocoa): #include <ApplicationServices/ApplicationServices.h> int copyThatThing(void) { PasteboardRef clipboard; if (PasteboardCreate(kPasteboardClipboard, &clipboard) != noErr) { return -1; ...

Anti-aliased text in X11

I'm experimenting with Xlib to gain a deeper understanding of how Linux GUI programs work. I've written a simple program that display "Hello, world" in a window, but it looks rather anachronistic since the text is not anti-aliased. What is the best way to display anti-aliased text in X11? How is anti-aliasing implemented in GTK, Qt, and...

How do I make my cygwin .xinitrc wait for the X server to exit?

I'm using Cygwin's startx and want to customize my xinitrc so that I don't get any "magic" X programs on screen, i.e., programs that will cause the X server to terminate if I exit them. I don't want any X programs to start up on screen at all, actually; I just want to use the XWin menu, customized from my .XWinrc . Ordinarily from a .x...

Starting Python script without explicitly having X11 open

I had Python v2.3 on my system. When I wanted to run a Tkinter script I could just use python myscript.py I recently upgraded to Python 2.5 and now I need to have X11 running and the "DISPLAY" environment variable set before I can run any of my scripts. This is bad for me, because I can't distribute any scripts without explicitly stat...