techmarks
August 23rd, 2008, 02:58 AM
If I create a small test app using only Xlib (to create a window on the screen) and Cairo (to draw stuff on the window) and then run it in my desktop (Xfce in this case) it works fine.
Now if I just try to run it from the command line I get a message about something like 'failure to initialize display' I (think that's what it was)
So I'm wondering how do the desktop and window managers work?
Suppose I use Xlib to just create a big window and then want to run it (but without starting Xfce first) could I even do it?
There must be a way, because that must be basically what Xfce is doing somehow and ultimately it's the X Window system behind it.
If someone could share some insight into how the process works I'd appreciate it. thanks.
(even if I just try to start up the plain simple window by itself without using Cairo at all even, it can't just be started from a command line)
Now if I just try to run it from the command line I get a message about something like 'failure to initialize display' I (think that's what it was)
So I'm wondering how do the desktop and window managers work?
Suppose I use Xlib to just create a big window and then want to run it (but without starting Xfce first) could I even do it?
There must be a way, because that must be basically what Xfce is doing somehow and ultimately it's the X Window system behind it.
If someone could share some insight into how the process works I'd appreciate it. thanks.
(even if I just try to start up the plain simple window by itself without using Cairo at all even, it can't just be started from a command line)