summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-08Fix unix:0.0 connectionsAndy Williams
According to the spec at https://www.x.org/archive/X11R6.8.0/doc/Xorg.1.html#sect5 the DISPLAY string unix:0.0 is special. This forces connections to use the unix socket at this address even if they would normally lookup TCP first. Simple fix so that we fall through to the unix socket in this case.
2020-03-24Fix doc linkJvol Jvolizka
2016-05-22Merge pull request #37 from rabinv/fix-randr-printfAndrew Gallant
Remove stray format char in randr example
2016-05-22Remove stray format char in randr exampleRabin Vincent
2016-03-29fix structs with field name of 'Bytes'Andrew Gallant
(it conflict with a method of the same name that is generated for all such structs)
2016-03-21Merge pull request #35 from aarzilli/xauthwildAndrew Gallant
Handle wildcard values in Xauthority file
2016-03-21Merge pull request #34 from aarzilli/extlockAndrew Gallant
Read/Write mutex for Extensions map
2016-03-21Handle wildcard values in Xauthority fileaarzilli
Some field values in the Xauthority file have special meanings: - a value of 65535 in the 'family' field means that the entry will match a connection of any family on any address - an empty string in the 'display number' field means that the entry will match a connection on any display number This behaviour is documented at: https://cgit.freedesktop.org/xorg/lib/libXau/tree/AuGetBest.c#n109
2016-03-21Read/Write mutex for Extensions mapaarzilli
2015-11-20Merge pull request #31 from aarzilli/masterAndrew Gallant
sendRequest reads req.buf after closing req.seq
2015-11-08sendRequest reads req.buf after closing req.seqaarzilli
NewRequest says you can avoid reallocating a new buffer for each request by calling it directly. This is not true if req.seq is closed before req.buf is read.
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)