summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-26Remove panics/fatal errors.Andrew Gallant
Fixes #9. This makes shutdown a little more graceful, but there's more work to be done here. Namely, all outstanding cookies need to be given the error, otherwise they will block forever.
2015-04-26assign a sequence id to the cookie before returning from Conn.NewRequestBryan Matsuo
2015-02-22Merge pull request #27 from fangyuanziti/masterAndrew Gallant
add a new api: NewConnNet. So we can init a xgb.Conn from a net.Conn
2015-02-22add a new api: NewConnNetfangyuanziti
2014-05-10Formatting and 80 cols.Andrew Gallant
2014-05-02Fix Issue #21: automatic calculation of alignment padding after listsaarzilli
2013-12-30Merge pull request #19 from snyh/masterAndrew Gallant
example/randr: check the GetOutputInfo's mode length (virtual head can h...
2013-12-31examples:randr use info.Connection to detect whether there has any Randr.Modessnyh
2013-12-30example/randr: check the GetOutputInfo's mode length (virtual head can have ↵snyh
zero mode)
2013-12-28Use consistent extension names. Close #6.Andrew Gallant
2013-12-28It appears that the "Str" type (which is built into the core X protocol)Andrew Gallant
doesn't specify any padding. So it has to be treated as a special case. Close #12.
2013-12-28shortcuts for the lazyAndrew Gallant
2013-12-28When writing, don't pad the length of bytes produced from innerAndrew Gallant
structs/unions. Each type should take care of its own padding. Close #14.
2013-12-28Regenerate xgb with latest XML descriptions.Andrew Gallant
2013-12-28Fix fmt'd output for union list writing.Andrew Gallant
2013-12-28Ignore the "fd" field for the time being (for the shm extension only).Andrew Gallant
2013-12-28The `sync` and `xinput` extensions now use the `switch` field, whichAndrew Gallant
XGB does not currently support. Therefore, I'm removing the sync and xinput extensions. This affects issues #11 and #13.
2013-08-22Merge pull request #10 from Merovius/loggingAndrew Gallant
Export the logger (again)
2013-08-23Export the logger (again)Axel Wagner
Just enabling or disabling logging falls short of the power of interfaces of go. A user is forced to either accept the logging to stderr in the format defined by xgb or disable logging alltogether. By exporting the logger, we can actually let the user decide where to log in what format.
2013-08-11Padding on a list is on the length of the list.Andrew Gallant
There was a bug where padding was being computed on each element of the list. Close #5.
2013-08-11Don't needlessly change source files every time.Andrew Gallant
2013-08-11Update to latest xproto XML.Andrew Gallant
2013-08-11Updated to work with new xproto XML files.Andrew Gallant
Namely, the "doc" element is ignored. Also, I've sorted everything before output so that diff isn't completely useless.
2013-08-11Fixed a nasty bug where closing could cause ReadFull to crashAndrew Gallant
the program. Close #4.
2013-01-26gofmtAndrew Gallant
2013-01-26Provide access to the X display number in the XGB Conn.Andrew Gallant
2012-10-16The hack continues. I've increased the event channel buffer. I know I'mAndrew Gallant (Ocelot)
goofing here. What I'd personally like to do is just use an "infinite" channel. That is, push the limit of how many events can be processed to the machine and not set an artificial limit in XGB. Some day...
2012-10-15Tests were move to xproto package a long time ago. Update README.Andrew Gallant (Ocelot)
2012-06-05Doc fixes and stop exporting ReplyChecked and ReplyUncheckedAndrew Gallant (Ocelot)
2012-06-05Refresh build. Eh.Andrew Gallant (Ocelot)
2012-06-05Add rules for installing all packages.Andrew Gallant (Ocelot)
2012-06-04Doc fix.Andrew Gallant (Ocelot)
2012-06-02Benchmark with gomaxprocs=3 tooAndrew Gallant (Ocelot)
2012-06-02A pathological example for profiling purposes. Use 'make test'.Andrew Gallant (Ocelot)
2012-05-28Add some style guidelines.Andrew Gallant (Ocelot)
2012-05-28Merge pull request #1 from tones111/authAndrew Gallant
auth: use encoding.binary
2012-05-28auth: use encoding.binaryPaul Sbarra
2012-05-26Bug fix in the generator that was outputting %(MISSING) crud.Andrew Gallant (Ocelot)
2012-05-26Doc touchups.Andrew Gallant (Ocelot)
2012-05-16Add new logger type so that it can be shut off.Andrew Gallant (Ocelot)
2012-05-16export logger so it can be disabledAndrew Gallant (Ocelot)
2012-05-12close channels.Andrew Gallant (Ocelot)
2012-05-12A more idiomatic way of trying a non-blocking send on a buffered channelAndrew Gallant (Ocelot)
and falling back to a blocking send inside a goroutine. This really needs to be fixed. The situation only arises when events are sent and aren't pulled off the channel using {Wait,Poll}ForEvent. Namely, if the event send blocks, the entire program will deadlock. Using a goroutine is not ideal because we lose a guarantee of order: that events are processed in the order of their arrival. However, it seems OK as a temporary band-aide for a situation that probably doesn't arise too often. What I need to do is implement a dynamic queue. Here is a reference implementation: http://play.golang.org/p/AiHBsxTFpj
2012-05-12added some docs and removed some extraneous codeAndrew Gallant (Ocelot)
2012-05-12docsAndrew Gallant (Ocelot)
2012-05-12some docs in the Makefile and removing a prefix that isn't needed.Andrew Gallant (Ocelot)
2012-05-11panic when an extension request is issued before an extension has been ↵Andrew Gallant (Ocelot)
initialized. but give a nice error message for the happy people.
2012-05-11panic when an extension request is issued before an extension has been ↵Andrew Gallant (Ocelot)
initialized. but give a nice error message for the happy people.
2012-05-11doc updates and a quick usageAndrew Gallant (Ocelot)
2012-05-11add a little more docs for errorsAndrew Gallant (Ocelot)