Re: The keyboard interfaces and protocols in X

2022-02-14 Thread Sam Varshavchik
I should preface by saying that I reverse-engineered this, based on time-consuming searches, and by picking up some clues in xorg's source. This was a long time ago, I don't remember where I found everything, I forgot, and only have the end results. This is what I have: https://github.com/svarshav

Re: x opacity

2022-01-06 Thread Sam Varshavchik
On Thu, Jan 6, 2022 at 3:37 AM Paum B. wrote: > > Hi, I don't know where I should ask. > > I want to achieve: vim in terminal, with possibility to put 100% opacity to > everything besides text I am writing, so that all terminal window, except my > text is transparent. You will need to check th

Re: Beginner Questions About XCB - xcb_alloc_color is too slow

2021-02-22 Thread Sam Varshavchik
On Sun, Feb 21, 2021 at 4:47 PM Carsten Haitzler wrote: > > Use Xlib. Or just use a toolkit higher up the stack. XCB really is for people > who already know X backwards. It can buy some speedups in some corner-cases by > avoiding round trips to the server and back and putting the job of doing it >

Re: Beginner Questions About XCB - xcb_alloc_color is too slow

2021-02-20 Thread Sam Varshavchik
On Sat, Feb 20, 2021 at 9:37 PM Mark Solomonik wrote: > > Hello, > I am trying to implement a 3D engine from scratch with XCB. To do this, I > have to set the color of every individual pixel before drawing it. > > I noticed that calling xcb_alloc_color and xcb_alloc_color_reply are > bottlenecki

Re: restart Xorg? | fedora 32 | mem leak?

2021-02-18 Thread Sam Varshavchik
On Thu, Feb 18, 2021 at 11:48 AM Tom wrote: > > After a week or two Xorg grows -- last time to about 3.6GB. How may I restart > Xorg with out rebooting, or disturbing my current session? > > -- > thanks, > Tom > > -- > systemctl restart display-manager # works, but I have to restart all my > grap

Where to check for supported radeon hardware

2020-12-05 Thread Sam Varshavchik
I am trying to vet some hardware to buy, and make sure that, well, the video card will work. I see many builders offer radeon video cards with model names like rx 550, rx 570, and rx 590. I can't find any mention of these models on https://www.x.org/wiki/RadeonFeature/#decoderringforengineeringvs

Re: Nouveau lockups

2020-11-25 Thread Sam Varshavchik
On Mon, Nov 23, 2020 at 8:57 AM Sam Varshavchik wrote: > > On Mon, Nov 23, 2020 at 5:12 AM Lucien Gentis > wrote: > > > > Did you check your RAM memory modules ? > > > > I once had a similar problem, and one of my memory modules was partially > > defect

Nouveau lockups

2020-11-22 Thread Sam Varshavchik
I started getting random X lockups. They happen randomly. Usually during video playback, but sometimes also waking up from sleep, and sometimes when doing something else, no rhyme or reason. The laptop can be ssh-ed into and rebooted, to completely recover. I'm running Fedora, and this started to

Re: poly line issue

2020-11-09 Thread Sam Varshavchik
On Mon, Nov 9, 2020 at 4:30 PM Per Dalgas Jakobsen wrote: > > Hi, > > I'm trying to learn coding with XCB and found an issue the XCB people > think should be placed her. > Drawing a diamond seems to render correctly only if started (end ended) > at the right-most corner, drawing from any other cor

Re: Suggestion for Xorg / about middle-mouse click pasting

2020-07-31 Thread Sam Varshavchik
As well as the "Paste" option from most applications' "Edit" menu, and/or the equivalent keyboard combination. I suppose that this is one way to fix the problem. > > On Fri, Jul 31, 2020 at 7:22 AM Sam Varshavchik > wrote: > > On Fri, Jul 31, 2020 at 4:

Re: Suggestion for Xorg / about middle-mouse click pasting

2020-07-31 Thread Sam Varshavchik
On Fri, Jul 31, 2020 at 4:30 AM Böszörményi Zoltán wrote: > > 2020. 07. 30. 21:20 keltezéssel, Dennis Clarke írta: > > On 7/30/20 6:39 PM, Elie Goldman Smith wrote: > >> Countless people on forums ... > > > > Also they are not the source code nor would I rely on what countless > > people say on ju

Re: Suggestion for Xorg / about middle-mouse click pasting

2020-07-30 Thread Sam Varshavchik
On Thu, Jul 30, 2020 at 3:06 PM Elie Goldman Smith wrote: > Countless people on forums say that middle-mouse pasting is an X11 feature. "X11" is not the same thing as an "X server". > This document seems to confirm that it's an X11 feature: > https://www.jwz.org/doc/x-cut-and-paste.html Yes, i

Re: BadAccess to a GrabButton

2020-05-04 Thread Sam Varshavchik
On Mon, May 4, 2020 at 3:57 AM Walter Harms wrote: > > Hi Sam Varshavchik, > could you please elaborate a bit what you are doing exactly ? > Someone should be able to replicate that you are doing. > > You have a (simple) programm you can share ? > Even pseudo code would be o

BadAccess to a GrabButton

2020-05-02 Thread Sam Varshavchik
I'm running automated tests that map/unmap things quickly, amongst other things. I am getting a BadAccess in response to one of the GrabButton requestrs, and I can't figure out why (x11trace): 000:>:0705:Error 10=Access: major=28, minor=0, bad=79691853 X documentation says that BadAccess results

Re: How to change mouse cursor to standard hand cursor

2015-07-17 Thread Sam Varshavchik
Cosmin Apreutesei writes: > You may want to check the documentation for your desktop manager. How can I detect at runtime which desktop manager is running so I can take it from there? Desktop managers typically set their own desktop manager-specific properties in the root window. The typi

Re: How to change mouse cursor to standard hand cursor

2015-07-16 Thread Sam Varshavchik
Cosmin Apreutesei writes: Hi, I need to change the mouse pointer for a window to the standard hand cursor (I need a toolkit-independent solution, preferably XCB-based). I noticed that loading the "cursor" font and changing the window attribute XCB_CW_CURSOR to XC_hand2 loads an ugly and unfami

Any way to get rid of PolyFillArc artifacts?

2015-06-19 Thread Sam Varshavchik
I am creating a pixmap of a certain size, and sending a PolyFillArc request from (0, 0), sized (width, height). x11trace log, when using a pixmap sized (61, 61): 00:<:042e: 16: Request(53): CreatePixmap depth=0x01 pid=0x03e000e8 drawable=0x0 2d5 width=61 height=61 [ … ] 000:<:0434: 16