lxqt / qterminal

A lightweight Qt-based terminal emulator
https://lxqt.github.io
GNU General Public License v2.0
611 stars 153 forks source link

Focus the sub-terminal on mouseover #1189

Closed tsujan closed 1 day ago

tsujan commented 2 days ago

Closes https://github.com/lxqt/qterminal/issues/1188

tsujan commented 2 days ago

@stefonarch My other 2 PRs are also waiting for you ;)

stefonarch commented 2 days ago

@stefonarch My other 2 PRs are also waiting for you ;)

I didn't manage to have 2 links in Qterminal and neither the slash thing. But you didn't ask for reviews no?

tsujan commented 2 days ago

But you didn't ask for reviews no?

I feared you might say no, because you were busy. That was the only reason.

but the setting shouldn't be under "Appearance" but under "Behavior" IMO.

IMO, it should be where "Show a border..." is. Without a border, it's dangerous.

stefonarch commented 2 days ago

IMO, it should be where "Show a border..." is. Without a border, it's dangerous.

Could "show border" be forced automatically when activation follow mouse? Keyboard focus has little to do with appearance.

tsujan commented 2 days ago

Could "show border" be forced automatically when activation follow mouse?

Users have right to feel brave.

Keyboard focus has little to do with appearance.

Several options can be interpreted both ways. Appearance and Behavior were words chosen a long time ago, and now they aren't good enough. We might want to make changes to that dialog later. Frankly, I can hardly find the option I want among that mess.

However, the 4 options about the current (= focused) terminal should be together, IMO, as anyone may expect.

tsujan commented 2 days ago

I'll rearrange the Preferences dialog in my next PR. It's a long time I want to do so, but either I'm busy, or I forget.

tsujan commented 2 days ago

Orderly, neat, and easy to search: 1 2 3

"Set the current terminal on mouseover" will be the new text, and it'll remain beside the other settings for the current terminal.

tsujan commented 1 day ago

The "current" one is the one already focused on mouseover

No. The current terminal is the one that will be focused if the whole window is activated. You can see that by putting the mouse cursor over (a sub-terminal of) an inactive terminal window and then activating it.

That shows the main problem of "Focus the terminal on mouseover": it might easily be mistaken for focusing the window on mouseover, as if we want to do a WM job here, because people use the word "terminal" for the window too.

tsujan commented 1 day ago

Went a step further and made it so in the upcoming PR:

1-1

You wont find a cleaner GUI anywhere ;)

However, here isn't the place to discuss it.

tsujan commented 1 day ago

@stefonarch While preparing the next patch (will make a PR soon), I saw that some texts weren't good. I found these:

I didn't touch them because it would affect trasnlations.

stefonarch commented 1 day ago

I think both can be solved preserving translations by using sed as we did before when changing capitalized strings. Maybe change those texts in a different PR is better,

tsujan commented 1 day ago

I think both can be solved preserving translations by using sed

Yes. That's why I told you — you've done it before.

Maybe change those texts in a different PR is better

Yes, after https://github.com/lxqt/qterminal/pull/1191 is decided.