Mouse selection is not working properly
Reported by another Profanity user.
Expected Behavior
When user holds LMB (left mouse button) and drag mouse, text selected.
Current Behavior
When user holds LMB and drags, selection is not happening.
Possible Solution
It might be related to #1943.
Steps to Reproduce (for bugs)
- Hold LMB, drag it.
- Text is not selected.
Context
The problem is not reproducible by me and some other users, but the user that has a problem claims that the problem appeared after he updated Profanity 17.01.24
Environment
Tilix, master branch of the profanity running in arch docker.
I don't see how the mainloop can have any effect on this. Most likely that user updated his terminal, ncurses, tmux, tinfo or anything else on the system. Furthermore I cannot reproduce this issue with or without running in tmux.
I still believe this is a user/system issue and not ours. Any feedback from the user?
I still believe this is a user/system issue and not ours. Any feedback from the user?
The following experiment has been conducted: the user opened a second "window/session/tab" withing a same window with the profanity, the selection problem persisted on the profanity's side, but not on the other one. My conclusion is that the problem is somehow related to the new way that we process user input.
the user opened a second "window/session/tab" withing a same window with the profanity
window within same window?
Maybe interesting to try with: xterm, vte based (gnome-terminal for example) with and without tmux (if they are a temux user).
the user opened a second "window/session/tab" withing a same window with the profanity
window within same window?
Maybe interesting to try with: xterm, vte based (gnome-terminal for example) with and without tmux (if they are a temux user).
Tilix is similar to TMUX. Session was meant, not a window.
I opened profanity in tilix and the second window for illustration of the setup. Right window: selection is working; left window: does not (occasionally it does, once in 5-10 tries).
Tilix is similar to TMUX.
Does it work without it?
Tilix is similar to TMUX.
Does it work without it?
For me problem with Tilix is not reproducible with the same OS. Though I asked if it's reproducible for the user without the Tilix.
Does this behaviour happen for the user in xterm, other vte based terminal or only with Tilix? Does this happen only with latest master (containing gmainloop) or also before that, for example with 2ec94064ed341f0ea5b197a283c6ebfb15716bd0?
Change reverted, it fixed the issue