Programming :: Read The State By Using _NET_WM_STATE In Xlib?
Oct 8, 2010i 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 Repliesi 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 RepliesI'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]....
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...
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 RelatedI 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 RelatedThe 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 RelatedI 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 RelatedI'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
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 Relatedi got some mail starting in the last days with this content:
Code:
/etc/cron.daily/logrotate:
error: bad top line in state file /var/lib/logrotate/status
error: could not read state file, will not attempt to write into it
run-parts: /etc/cron.daily/logrotate exited with return code 1
/var/lib/logrotate/status
Code:
Package: binutils-static
Auto-Installed: 1
Package: linux-restricted-modules-common
Auto-Installed: 1
[code]...
i only installed packages via aptitude and did not modify anything logrotate related.
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"?
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.
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 RelatedI 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:
Well I got an strange error while I am programming. In fact, I am doing fast udp communication and testing the communication. In order to do it, I have done a program which test how many frame i manage to receive by changing the flow( between 800 Mb/s to 950Mb/s). The flow and number of Frame are defined in an other computer and every thing about that is alright.
While I am testing the number of Frame received 100 time, sometimes, I get 995 receveid et the next 1005 receveid instead of 1000. The delay for receiving frame lasts much more than the real delay.
So how could this error happen and how can I do for this error to not occur anymore?
How can i check what operating system, i am running on, at run time?Moreover, how can i retrieve that current state of process?
View 4 Replies View RelatedI am seeing a weird error in a font display. I see a small question mark next to a font that I am using as a simple graphic. Does this mean that some function call in xlib is being passed an invalid paramter?
View 1 Replies View RelatedI have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.
View 3 Replies View RelatedI try to use XML::Simple to read each 'feed' from following RSS from CNN. Some of the sets contains more than one feed item which has no unique identifier besides its contents.
Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rssfeeds> <set id="1">
<!-- RSS feeds from feedburner.com !--> <!-- XBOX Scene !-->
<feed updateinterval="30">http://feeds.feedburner.com/XboxScene</feed>
</set> <set id="2"> <!-- RSS feeds from skynews.com !-->
<!-- World News !--> .....
I have a linux system set up. Very minimal. I have a compiler and I need to compile xlib and all its dependencies so that I can use it. I don't have any type of package management system because it is an embedded application. So I need to know what all I need to build before xlib. Assume that I only have the core utils and gcc. Please don't tell me to download binaries, I cant do that, it wont work. Unless you have armeb binaries for me.
View 1 Replies View RelatedI need to read from a file called ranking.txt the name of the players and the respective score. The file is something like this:
Code:
24145 John Burt
12442 Kate Blair
[code]...
I need a regex expression to read IP address from lines like these for my perl script:
Code:
2011.05.13-14:54:58, test@xyz.com, 180.211.51.11, pop3
2011.05.13-14:57:26, test@xyz.com, 160.234.47.12, pop3
2011.05.13-14:57:54, www@abcd.com, 166.22.22.224, imap
2011.05.13-14:57:55, www@somedomain.com, 172.58.22.154, imap
2011.05.13-15:03:08, www@example.com, 190.22.120.44, pop3
I am trying to compile the code. I am getting this following error. Am I missing any package?
x86_screen.h:12:22: error: X11/Xlib.h: No such file or directory
In file included from osal_event.c:12:
x86_screen.h:25: error: expected specifier-qualifier-list before �Display�
make[1]: *** [osal_event.o] Error 1
I tried to install the pgplot, and I faced this error: X11/Xlib.h: No such file or directory
to solve this, I did this:
sudo apt-get install libx11-dev
but I face the other error which is:
f77 -c -u /usr/local/src/pgplot/drivers/gidriv.f
gidriv:
Error on line 247: syntax error
[Code]...
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 RelatedI'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
compiling wine i got error Xlib/Xfree86 how can the package of it for RHEL 5.3
View 1 Replies View RelatedWhen trying to run a graphical application at a remote host i get the error
Xlib: 'connection to ":0.0" refused by server'
Xlib: No protocol specified
How to address this?
Now I'm using Centos 5.3. when I let ADP (a EDA Tools) to idle more than 1 hours. The tools will display incorrectly. The per letter will be displayed as pane. So I must close it and re-open it.When the status is displayed, the system always said:xlib resource id allocation space exhausted!Forestall I use Centos 4.7, the system always works well. But I'm using Centos 5.3.How to maintenance it
View 2 Replies View RelatedWhen I install NCL on my system. There are many error about X11 appeared. Such like:
xdevice.c(40): catastrophic error: could not open source file "X11/Xlib.h"
rasdraw.c(30): catastrophic error: could not open source file "X11/Intrinsic.h"
w_idt.c(26): catastrophic error: could not open source file "X11/Intrinsic.h"
[code]....