Programming :: Can't Get Xlib Window To Display / What To Do?
Mar 12, 2009
I am having trouble writing an Xlib application that displays a window. The most frustrating thing is that I've written applications like this before, and never had any problems. For some reason I cannot get this program to work properly. I'm running KDE and when I launch the program, a "button" for the application will appear on the application panel, however, no window will display. It is possible to right click on the panel button and select the Close item which will successfully close the window.
The following is source code that when built will exhibit the behaviour described above code...
View 10 Replies
ADVERTISEMENT
Jan 15, 2011
Suppose i have an XID of a window. How can i wrap QPainter to draw on this window? I need something like cairo_xlib_surface_create(), but Qt-based.
View 3 Replies
View Related
Oct 6, 2010
I am trying to run the SDK for Meego with Qt. When I try to launch my simulator I get the error message: Xlib: extension "GLX" missing on display ":0.0". The answer I got on Meego's forum is that I am missing glx extensions. I have tried to find a way to get the glx extensions but I do not seem to get it. My searches on the web all point to Nvidia, but I have got ATI. I run Lenny 5.0.6 amd64.
View 2 Replies
View Related
Feb 5, 2010
I've verified that xorg-x11-libs is installed. This package provides libXrandr.so.2. However, when I run a program, in this case the python script for blueproximity (start_proximity.sh), I get the error in the title.
Code:
grep -ni randr /var/log/Xorg.0.log
237:(==) RandR enabled
247:(==) RandR enabled
257:(==) RandR enabled
274:(II) Initializing built-in extension RANDR
View 5 Replies
View Related
Jan 11, 2010
I am trying to write a small gtk+-2 program to display whatever image it is given and I was wondering if anyone out there has done something similar. I am not too familiar with writing programs for gtk and its been a while since I've fiddled with C. I went over the tutorial for gtk and it seams pretty easy to get a window to display, but I do not see anything that refers to loading an image or displaying it in the window. I am wondering if this can be done purely with gtk or will I need to use some type of image library like imlib2?
View 3 Replies
View Related
Feb 16, 2010
Usually the menu bar, and menus, are displayed within the applications main window. With a small screen this obviously wastes space so my idea is to reserve a location, small square space probably on a corner, on the screen that when clicked it will pop out the current selected applications menu, allow selection, and then disappear again. The application itself would look fullscreen, or if windowed will still not have a menu bar but access available via the "square."
Likewise instead of the usual task bar and "applications/places/system" menus (ala, ubuntu) a second square would be reserved which would pop-out and show the running tasks, followed by the menus, and allow selection, then disappear. Is this possible with GTK+ as it stands, as I'm guessing that by default everything must be contained within an applications main window?
Although having said that, gimp allows the tool windows to be external to the edited document, so perhaps it would be possible to make the menu bar into a toolbox? I guess the difficult problem would be how to make the currently selected applications "tool square" be on top when there could be multiple applications running. The "tool square" and "task/menu square" could be transparent (maybe just an outline) so that although always there they wouldn't hide any underlying windows/programs/etc.
Basically the idea is to get rid of wasted screen, in ubuntu (on gtk/gnome) a minimum of 5 "bars" is wasted screen real-estate:- 1, Running aplications: 2, Ubuntu's main menu bar: 3, Applications status bar: 4, Applications menu bar: 5, Applications description (min/max/close) bar. Take all the above and replace it with two clickable, potentially invisible, squares say where the default "hide all windows" and "deleted trashcan" icons currently reside.
View 3 Replies
View Related
Jun 12, 2011
I'm trying to build a program called Obpager, but I'm getting an error saying I don't have xlib.h. From what I understand, that file is included in libx11-dev, which I have installed. Any idea?
Code:
dagoss@MAGIC-PORT:~/Downloads/obpager-1.8$ make
Compiling src/main.cc
In file included from src/main.cc:33:0:
[code]....
View 2 Replies
View Related
Jul 6, 2011
How can i send a password window to display?
View 2 Replies
View Related
Oct 17, 2010
I am working on xlib project to develop text editor without using help from any of toolkit/widgets.I get stuck in scrollbar.I have no idea how they work and developed.It become more difficult as I am using low-level C library - xlib.
View 1 Replies
View Related
Mar 3, 2009
The code below seems to do a right mouse click (firefox 2.0.0.7) IF I pass it 3, but I cant get it to do a left mouse click?
View 4 Replies
View Related
Dec 6, 2008
I am starting to learn Linux graphical programming. Most of codes in my hands were written based on xlib, which is a kind of old graphic lib. I see some developers more interested in openGL. Then what's the difference between xlib and openGL? And which one is more popular used in which industry area?
View 2 Replies
View Related
Aug 3, 2009
I'm trying to get the width of a string in pixels this way:
Display *disp;
int len;
disp = XOpenDisplay(0);
font = XLoadQueryFont(disp, desc );
[code]....
I'm getting negative numbers as the the pixel length, eg -7275
View 3 Replies
View Related
Nov 17, 2010
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
View 1 Replies
View Related
Oct 8, 2010
i want to get the state of a particular window by using the _NET_WM_STATE atom. i dont know how to use it with XGetProperty.
View 6 Replies
View Related
Dec 11, 2009
I'm making a game with the xlib library. What I want to do is to know if the character is standing on a trap or something else.
So far I've solved that using the coordinates but when I draw circles or stuff not shaped like a rectangle it gets to hard to make the game exact.
So what I'm asking for is if there is some kind of function in the xlib that tells you which color a pixel has. Because then it'd be much easier.
I've searched but I haven't been able to find anything good. I found XGetPixel() but that appears to work only with images, maybe I can make my window to be an "image"?
View 7 Replies
View Related
Apr 27, 2010
I'm trying to understand how to use colors in Xlib programming. What I think I understand so far is that modern displays use 24 or 32-bit TrueColor. And TrueColor uses three colormaps, one for each primary color, and a single pixel value is composed of three indices.
Now the part i'm confused about is how to get my programs to use a 32-bit TrueColor visual. I thought I could inheret the visual from the root window to get color but it seems no matter what pixel value I use it's either black or white.
I guess my question is, how can I setup my programs so that I can specify a pixel value that is a combination of RGB values to get the color I want?
I come from windows where I simply used RGB(r,g,b) macro to specify colors and never had to worry about depth and colormaps and visuals, so I'm a bit overwhelmed by all of these concepts.
View 1 Replies
View Related
Dec 14, 2008
I want to do some experimentation with GUI programming. What mostly interests me is how the toolkits actually work (what are the drawing mechanisms, how it communicates with X, etc.) and how the window managers work. I know it's quite a lot but I don't plan on developing the next best DE/Toolkit/Window Manager, just to play with API, mostly to learn. It seems that there is a shortage of documentation on this topics, I'm trying to find anything for 2 days now with no result.
View 7 Replies
View Related
Jul 24, 2010
I tried to draw two lines with xlib.h in C. If I start this compiled program it show me in most cases a window with two lines as it should be.
But sometimes the two lines are not drawn.If I insert XFlush() before the second XSync() it worked better but not every time.Why?How can I solve the problem?How works the X-Server buffer in detail?
Code:
View 1 Replies
View Related
Dec 28, 2009
After upgrading to 11.2, I get the following error when starting any xclient. Worse, its usually repeated a few times for each client.
Xlib: extension "Generic Event Extension" missing on display <my_ip>
I get this both when using Xming and nomachine.
View 2 Replies
View Related
Jan 28, 2011
I typed vainfo in the terminal and get the following error message
Quote:
libva: libva version 0.31.1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/dri/nvidia_drv_video.so
Segmentation fault
View 9 Replies
View Related
Jan 3, 2010
when running sax2 -r i get this message any idea on what it means if its a problem how can i fix it
Xlib: extension "XFree86-Misc" missing on display ":0.0".
View 6 Replies
View Related
May 26, 2010
I am trying to get xinerama to work with x11vnc on Xvfb and I am getting:
xdpyinfo -ext XINERAMA
Xlib: extension "XINERAMA" missing on display ":0.0".
XINERAMA extension not supported by server
I am using the latest version of x11vnc which says XINERAMA is on by default. I have tried xf4vnc as well and get the same issue.
Xvfb :1 -screen 0 1024x2048x24 &
mwm &
x11vnc -display :1 -bg -nopw -xkb -N
I get a screen that looks like xinerama and windows pass from display to display fine, however xdpyinfo says otherwise and we have software that looks to xdpyinfo to get information about how display guis. When x11vnc was compiled it said it found libXinerama. Not sure what is going on. Does vncviewer need to support xinerama as well? Is there any way to tell if vncviewer does without downloading a newer or different version?
View 4 Replies
View Related
Jul 5, 2010
I would like to change the taskbar Minimized/Maximized view. Right now the active windows are protruding, i would like the opposite effect.
View 8 Replies
View Related
Feb 12, 2010
Im trying to "ssh -X" my university server for accessing cadence, but i get this:
HTML Code:
*Warning* X Window Display Initialization Failure
*Warning* (DISPLAY "<not defined>")
Apparantly i need to assign it my machine IP e.g like:
HTML Code: setenv DISPLAY machine:0.0
But unfortunately it still doesnt solve my problem. All it does is stop printing this warning message as a result.
View 2 Replies
View Related
Feb 5, 2010
I've been experimenting with the system and as these things go I've done something and I can't undo it through lack of understanding. I've managed to disable the display of minimised windows in the panel at the bottom of the screen. To compensate I'm using a Widget which allows me to get back to the window as I need it. But I'd prefer to be able to simply click on the panel.
View 4 Replies
View Related
Oct 5, 2010
I am trying to install RHEL 5.5 using rhel-server-5.5-i386-dvd DVD on my DELL Inspiron 1464 Laptop. However, after probing the hardware, I see a message at the bottom of the screen regarding xwindow, (cannot read it as it disappears fast) and then the first page of installation loads.(this has a redhat logo and a forward button at lower right corner) BUT this page is extremely DIM. Its as good as its not there.I have
DISPLAY:Intel(R) Graphics Media Accelerator HD (Core 3i) Intel Corporatoin Compatible
PROC: Intel (R) Core(TM) i3 M330 @ 2.13Ghz
RAM: 4.00 GB
What should I do to fix the issue? Also, earlier I was able to install Fedora 13 (32bit) successfully (dual boot with Win 7 Pro 64bit).
View 5 Replies
View Related
Jan 16, 2011
I have a bit of a problem w/ the windowing UI when I drag any window left, the display gets messed up (see attached screen shot). It doesn't matter what the program is, even happens in explorer. I've done some searching of the Internetz and this form and all I could find was this bug, that doesn't have any updates on it:
Does anyone know of a fix for this? I can make the lines go away by triggoring a repaint (by either dragging another window on top of this one or minimizing and maximizing the problem window, but it's still a bit annoying.I'm running Fedora 14 and have ran all of the updates it prompted me to run.
View 1 Replies
View Related
Nov 16, 2010
I'm using ubuntu Maverick on a Dell 1545 and I'm pretty much a newbie to ubuntu. Most of the things have been fine so far, I just plugged it into a proxyless internet connection and adjusted my location for time zone (I've been using a porxy server previously for internet which didn't allow changes in location and time zone work) and since then that calendar has moved out of the scope on the top right corner of my screen and I'm unable to move it.
View 1 Replies
View Related
Jan 24, 2011
I have been messing about with my themes lately and was wondering if it was possible to force the title of a window to display on the right side and have the buttons on the right. I'm already aware of using gconf-edit to change the order and position of the buttons but I can't seem to figure out how to move the title.
View 8 Replies
View Related
Feb 12, 2011
I'm not sure what happened, I enabled Nvidia support and all of sudden the internal layout of windows, look..well old-school, like they did back 10 years ago. The screen-shot explains all. I'm sure this is just a setting SOMEWHERE in Gnome but I'd be danged if I can find it.
View 5 Replies
View Related