9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "Timothy Robert Bednarzyk" <mail@trbsw.dev>
To: <9front@9front.org>
Subject: Re: [9front] [PATCH] Fix shift release events in X11 drawterm with shift:both_capslock xmodmap option
Date: Sun, 30 Jun 2024 15:08:32 -0400	[thread overview]
Message-ID: <D2DL6OF5QDX0.ARQPJAO04FP@trbsw.dev> (raw)
In-Reply-To: <CAFSF3XO9Md27vmFuKJqt2MfZp6R8gZU-1rKhC0aq4keRbO1EHw@mail.gmail.com>

> this does seem like your xmodmap is causing a bug in x11.

I do actually have to apologize, I've had these options set in an X11
configuration file for months and had forgotten which program was used
to enable the option on the fly. Prior to sending my first e-mail, I had
quickly looked up the option to re-remember what program it was, and
xmodmap came up first (and, incidentally, I now remember that when I was
first attempting to do something similar to those options, I had tried
to do it with xmodmap first). As it turns out, those options can 
actually be set by setxkbmap, not xmodmap. The specific X11 program that
actually contains the options is mostly an inconsequential detail here,
I realize, but I wanted to correct myself regardless.

> the behavior is completely non-sensical. maybe nobody ever tested this
> x11 feature? ;)

I wouldn't be surprised if some emacs users were using the same options
as me; after all, I originally set them when I wanted to attempt to try
out emacs and was following the advice of many who suggest remapping
caps lock to control (but still wanted to have some way of toggling caps
lock). While I ended up not using emacs too much (honestly, I think I
prefer even ed over emacs), I did like the options that I'd set and have
kept them since. Drawterm was the first program that I've used where
this insane behavior in X11 actually surfaced as a problem, so I also
wouldn't be surprised if I was the first one to thoroughly test the
option and discover exactly how it's screwy.

> not sure how much we should care about workarounds for bugs that only
> happen in an edge-case of a (mis-?)configuration.

That is a good point. Originally, I was so focused on "fixing" the "bug"
in drawterm (when I should've just gone to bed) that I hadn't even
considered just getting the actual X11 bug fixed where it should be once
I learned what was causing the problem. I'll try to get it fixed
wherever appropriate first; this change to drawterm can be saved as a
last resort if someone determines that the current X11 behavior is not
to be changed for some bs reason like "compatibility", or even worse:
claims that it's actually the correct and intended behavior.

> otoh a few well commented lines that contain a good justification for
> this braindamage, which now exists after such deep analysis wouldn't
> bother me personally... even if it's just a link to this thread.

Should this change actually be applied to upstream drawterm, I fully
agree that the comment should just contain a link to this thread.

--
trb

      reply	other threads:[~2024-06-30 19:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-28 23:53 Timothy Robert Bednarzyk
2024-06-29  0:30 ` Jacob Moody
2024-06-29 11:16   ` Timothy Robert Bednarzyk
2024-06-30 16:53     ` Jacob Moody
2024-06-30 19:22       ` Timothy Robert Bednarzyk
2024-06-29 16:31 ` hiro
2024-06-29 17:19   ` Timothy Robert Bednarzyk
2024-06-30 16:39     ` hiro
2024-06-30 19:08       ` Timothy Robert Bednarzyk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D2DL6OF5QDX0.ARQPJAO04FP@trbsw.dev \
    --to=mail@trbsw.dev \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).