Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

X programming

Name: Anonymous 2007-02-24 12:11 ID:pj0FsHK4

Anyone knows where I should start from with X programming ? Any links/tutorials I might learn from how this shit works ? I can't find anything useful through google. All I find is useless documentation of Xlib, which A. isn't really a good thing if you don't know a shit about X, B. Xlib is depracated AFAIK and is going to be replaced by something else. Or am i wrong ?

hint: i'm trying to create my own compositing manager (using Composite extension ofcourse).

Name: Anonymous 2007-02-24 12:22 ID:U29c9BbK

Might not be such a good idea to go with Xlib anymoer, since XCB is the up-and-coming, quicker faster better client library.

But yeah, if you want to take a look at how things used to be in the Bad Old Days, try Xlib. It's horrible. And really, starting out with making your own composition manager from scratch might not be such a good idea; why not take one of the existing ones and hack it to do what you'd like? Last I checked, both of the major ones are free software.

Name: Anonymous 2007-02-24 12:26 ID:pj0FsHK4

OP here.
The best way of understanding is writing something something from a scratch.

Modding Compiz/Beryl is out of the question. Do not want.

I'd rather make something really plain and fast. All I want is window thumbnail preview and zoom, without any special effects nor real-time previewing.

Does it matter if I'll try making the manager by using XCB ? Won't it make any incompatibilities with, for example, window manager ?

Name: Anonymous 2007-02-24 12:36 ID:mRerPnSn

Ichi-san, Xlib sucks. Stick to newer stuff, like everything KDE offers.

Name: Anonymous 2007-02-24 12:52 ID:pj0FsHK4

I've looked into XCB docs just now, it seems that the only tutorial I found is still incomplete. But oh well.

On the other hand, I'd like to ask a question, or maybe a two.
 1. Is there a simple way to tell your window manager, that a window wants focus and to be raised ? Or will I have to hack the WM itself to get that done.
 2. How do I distinct whenever a window is a normal one, and it's a dock-thingy, or something else ? Is it possible ? WMs display only a few, but XQueryTree() returns lots of them. I haven't found a way to check/filter that, except checking for XWindowAttributes' map_state - but that's propably a bad idea, since it didn't work with TWM correctly.

Name: Anonymous 2007-02-24 17:24 ID:U29c9BbK

Yeah, that's kind of why I recommended you take inspiration from the other two. Seeing as you're kind of starting from scratch in making a rather large piece of software and all.

Name: Anonymous 2009-01-14 13:16

SICP

Name: Anonymous 2009-03-06 8:03

The topic of discussion   on slashdot is   a blog not   a forum Its   discussion are frozen   after the article   limit about a   good C book   Babes are Cyblade   Rogue and Wonder   Woman I hope   YOU AND EVERYTHING   else is true   to Could it   be to implement   a scripting language   and thousands of   bullets on the   site Wanna have   a choice of   languages Wanna be   able to manipulate   the border between   truth and lies   If one were   ever released they!

Name: Anonymous 2010-06-25 14:54

WARNING: NECRO POST

Name: Anonymous 2011-02-04 12:42

Name: Sgt.Kabu媜ᓳkiman껱뮁 2012-05-28 22:51

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List