diff options
Diffstat (limited to 'nexgb/composite/composite.go')
-rw-r--r-- | nexgb/composite/composite.go | 51 |
1 files changed, 21 insertions, 30 deletions
diff --git a/nexgb/composite/composite.go b/nexgb/composite/composite.go index cad0ce1..5e988bf 100644 --- a/nexgb/composite/composite.go +++ b/nexgb/composite/composite.go @@ -90,7 +90,7 @@ func CreateRegionFromBorderClip(c *xgb.Conn, Region xfixes.Region, Window xproto } // CreateRegionFromBorderClipChecked sends a checked request. -// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check() +// If an error occurs, it can be retrieved using CreateRegionFromBorderClipCookie.Check. func CreateRegionFromBorderClipChecked(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) CreateRegionFromBorderClipCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -108,8 +108,7 @@ func (cook CreateRegionFromBorderClipCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for CreateRegionFromBorderClip -// createRegionFromBorderClipRequest writes a CreateRegionFromBorderClip request to a byte slice. +// createRegionFromBorderClipRequest writes a CreateRegionFromBorderClip request to a byte slice for transfer. func createRegionFromBorderClipRequest(c *xgb.Conn, Region xfixes.Region, Window xproto.Window) []byte { size := 12 b := 0 @@ -141,7 +140,7 @@ type GetOverlayWindowCookie struct { } // GetOverlayWindow sends a checked request. -// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply() +// If an error occurs, it will be returned with the reply by calling GetOverlayWindowCookie.Reply. func GetOverlayWindow(c *xgb.Conn, Window xproto.Window) GetOverlayWindowCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -208,8 +207,7 @@ func getOverlayWindowReply(buf []byte) *GetOverlayWindowReply { return v } -// Write request to wire for GetOverlayWindow -// getOverlayWindowRequest writes a GetOverlayWindow request to a byte slice. +// getOverlayWindowRequest writes a GetOverlayWindow request to a byte slice for transfer. func getOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte { size := 8 b := 0 @@ -251,7 +249,7 @@ func NameWindowPixmap(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) N } // NameWindowPixmapChecked sends a checked request. -// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check() +// If an error occurs, it can be retrieved using NameWindowPixmapCookie.Check. func NameWindowPixmapChecked(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) NameWindowPixmapCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -269,8 +267,7 @@ func (cook NameWindowPixmapCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for NameWindowPixmap -// nameWindowPixmapRequest writes a NameWindowPixmap request to a byte slice. +// nameWindowPixmapRequest writes a NameWindowPixmap request to a byte slice for transfer. func nameWindowPixmapRequest(c *xgb.Conn, Window xproto.Window, Pixmap xproto.Pixmap) []byte { size := 12 b := 0 @@ -302,8 +299,8 @@ type QueryVersionCookie struct { } // QueryVersion sends a checked request. -// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply() -func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie { +// If an error occurs, it will be returned with the reply by calling QueryVersionCookie.Reply. +func QueryVersion(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() if _, ok := c.Extensions["Composite"]; !ok { @@ -316,7 +313,7 @@ func QueryVersion(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uin // QueryVersionUnchecked sends an unchecked request. // If an error occurs, it can only be retrieved using xgb.WaitForEvent or xgb.PollForEvent. -func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) QueryVersionCookie { +func QueryVersionUnchecked(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) QueryVersionCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() if _, ok := c.Extensions["Composite"]; !ok { @@ -373,9 +370,8 @@ func queryVersionReply(buf []byte) *QueryVersionReply { return v } -// Write request to wire for QueryVersion -// queryVersionRequest writes a QueryVersion request to a byte slice. -func queryVersionRequest(c *xgb.Conn, ClientMajorVersion uint32, ClientMinorVersion uint32) []byte { +// queryVersionRequest writes a QueryVersion request to a byte slice for transfer. +func queryVersionRequest(c *xgb.Conn, ClientMajorVersion, ClientMinorVersion uint32) []byte { size := 12 b := 0 buf := make([]byte, size) @@ -419,7 +415,7 @@ func RedirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Redirect } // RedirectSubwindowsChecked sends a checked request. -// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check() +// If an error occurs, it can be retrieved using RedirectSubwindowsCookie.Check. func RedirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectSubwindowsCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -437,8 +433,7 @@ func (cook RedirectSubwindowsCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for RedirectSubwindows -// redirectSubwindowsRequest writes a RedirectSubwindows request to a byte slice. +// redirectSubwindowsRequest writes a RedirectSubwindows request to a byte slice for transfer. func redirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte { size := 12 b := 0 @@ -485,7 +480,7 @@ func RedirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWind } // RedirectWindowChecked sends a checked request. -// If an error occurs, it can be retrieved using RedirectWindowCookie.Check() +// If an error occurs, it can be retrieved using RedirectWindowCookie.Check. func RedirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) RedirectWindowCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -503,8 +498,7 @@ func (cook RedirectWindowCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for RedirectWindow -// redirectWindowRequest writes a RedirectWindow request to a byte slice. +// redirectWindowRequest writes a RedirectWindow request to a byte slice for transfer. func redirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte { size := 12 b := 0 @@ -551,7 +545,7 @@ func ReleaseOverlayWindow(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindo } // ReleaseOverlayWindowChecked sends a checked request. -// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check() +// If an error occurs, it can be retrieved using ReleaseOverlayWindowCookie.Check. func ReleaseOverlayWindowChecked(c *xgb.Conn, Window xproto.Window) ReleaseOverlayWindowCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -569,8 +563,7 @@ func (cook ReleaseOverlayWindowCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for ReleaseOverlayWindow -// releaseOverlayWindowRequest writes a ReleaseOverlayWindow request to a byte slice. +// releaseOverlayWindowRequest writes a ReleaseOverlayWindow request to a byte slice for transfer. func releaseOverlayWindowRequest(c *xgb.Conn, Window xproto.Window) []byte { size := 8 b := 0 @@ -612,7 +605,7 @@ func UnredirectSubwindows(c *xgb.Conn, Window xproto.Window, Update byte) Unredi } // UnredirectSubwindowsChecked sends a checked request. -// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check() +// If an error occurs, it can be retrieved using UnredirectSubwindowsCookie.Check. func UnredirectSubwindowsChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectSubwindowsCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -630,8 +623,7 @@ func (cook UnredirectSubwindowsCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for UnredirectSubwindows -// unredirectSubwindowsRequest writes a UnredirectSubwindows request to a byte slice. +// unredirectSubwindowsRequest writes a UnredirectSubwindows request to a byte slice for transfer. func unredirectSubwindowsRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte { size := 12 b := 0 @@ -678,7 +670,7 @@ func UnredirectWindow(c *xgb.Conn, Window xproto.Window, Update byte) Unredirect } // UnredirectWindowChecked sends a checked request. -// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check() +// If an error occurs, it can be retrieved using UnredirectWindowCookie.Check. func UnredirectWindowChecked(c *xgb.Conn, Window xproto.Window, Update byte) UnredirectWindowCookie { c.ExtLock.RLock() defer c.ExtLock.RUnlock() @@ -696,8 +688,7 @@ func (cook UnredirectWindowCookie) Check() error { return cook.Cookie.Check() } -// Write request to wire for UnredirectWindow -// unredirectWindowRequest writes a UnredirectWindow request to a byte slice. +// unredirectWindowRequest writes a UnredirectWindow request to a byte slice for transfer. func unredirectWindowRequest(c *xgb.Conn, Window xproto.Window, Update byte) []byte { size := 12 b := 0 |