Re: How to convert ZPixMap to BGRA reliably?

2017-08-25 Thread Sai Prasanna
_mask, v.blue_mask) } } Which Depth and Visual Id should I select for getting correct masks ? On Wed, Aug 23, 2017 at 6:47 PM, Ilya Anfimov wrote: > On Tue, Aug 22, 2017 at 11:39:26AM +0530, Sai Prasanna wrote: > >I thought Zpixmap mapped directly to BGRA. But my assumption didn't &g

How to convert ZPixMap to BGRA reliably?

2017-08-21 Thread Sai Prasanna
I thought Zpixmap mapped directly to BGRA. But my assumption didn't turn out to be correct in some older X versions. I am using xcb_get_image and xcb_shm_get_image to grab screen pixels. I used Zpixmap option for image format. In new-ish Xorg versions it works perfectly. But in some machines with

Re: Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-11 Thread Sai Prasanna
trospect.Call(conn.Object("org.freedesktop.login1", "/org/freedesktop/login1/session/c2")) // if err != nil { // panic(err) // } // data, _ := json.MarshalIndent(node, "", " ") // os.Stdout.Write(data) } On Fri, Aug 11, 2017 at 1:

Re: Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-10 Thread Sai Prasanna
Hi, Thanks Michal. How to use Dbus API directly to get the same results?. I think loginctl is missing in some old distros. Thank you, Sai Prasanna On Wed, Aug 2, 2017 at 9:24 PM, Michal Srb wrote: > Hi, > > I would say a systematic way to do it is using the systemd/logind dbus api

Any reliable way to find the X11 display id and authority file for local session running in actual monitor.

2017-08-01 Thread Sai Prasanna
directly releavant to x11 alone and may involve display manager specific stuff, but my knowledge of X, display managers etc is quite currently limited. Thank you, R. Sai Prasanna ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesk