Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QTerminal dropdown always on top with "keep open if losing focus" selected #1022

Open
SubOptimal opened this issue Jan 1, 2023 · 10 comments

Comments

@SubOptimal
Copy link

Is your feature request related to a problem? Please describe.
When the option "Keep window open when it loses the focus" is selected, then the terminal window stays always on top.

Describe the solution you'd like
It would be nice if "keep open" would not imply "stay on top". It should behave as any other open window. If another window get active and the input focus, the qterminal window should be displayed behind and not stay on top.

Describe eventual alternatives you've considered
Seems there is no option to control that behavior.

image

Context

QTerminal currently hide another active window.

image

Either the qterminal drop-down window disappear when another window get the focus or it stays on top of all windows. Sometimes I would like to keep it open, but not to stay on top.

Used qterminal version 1.2.0 on Debian Bookworm.

@stefonarch
Copy link
Member

stefonarch commented Jan 2, 2023

This option should do exactly that, but it doesn't anymore if I'm not mistaken. First I thought it was an issue with xfwm 4.18 but also with other WMs I see it.
Looks like a regression, so we should change it to "bug".

@stefonarch stefonarch changed the title [Feature request] QTerminal dropdown always on top with "keep open if losing focus" selected Jan 2, 2023
@yan12125
Copy link
Member

yan12125 commented Jan 2, 2023

That option has been working that way for a long time. The description is indeed incorrect. At least it should be fixed. It's also nice to add a not-always-on-top mode.

Under the hood:

@stefonarch
Copy link
Member

As I never used it I don't remember well- to me this option makes no sense at all if the window stays at top always, IMO we should change the behavior not the description.

@yan12125
Copy link
Member

yan12125 commented Jan 2, 2023

Some people may still want the terminal to stay on top. Not sure if WM tricks (ex: devilspie/devilspie2 or kwin rules) are enough or qterminal should have an option for it.

@tsujan
Copy link
Member

tsujan commented Jan 2, 2023

Some people may still want the terminal to stay on top.

I also think that a drop-down terminal should stay on the top. When the user selects that option, he/she just wants to hide it himself/herself. Personal habits and preferences aside, IMHO, adding an extra option isn't justified.

@yan12125
Copy link
Member

yan12125 commented Jan 2, 2023

An option is introduced when some people want this and others want that :) Either behavior is fine IMO.

@tsujan
Copy link
Member

tsujan commented Jan 2, 2023

I think adding options based on mere likes/dislikes will lead to a chaos — like in KDE's config dialogs. There are as many likes/dislikes as there are users. IMO, an app should have enough options, not more. Who determines they're enough? Its devs, not users.

That being said, outside my work area, I follow the main devs' opinions — in this case, you :)

@yan12125
Copy link
Member

yan12125 commented Jan 3, 2023

Maybe we need more information to make meaningful decisions. @SubOptimal mind to share your use scenario for keeping the dropdown window and not making it stay on top?

@SubOptimal
Copy link
Author

@yan12125

My common use case is to run qterminal --drop and make it visible on need. It get hidden, when it loses the focus. To make it visible again I use SHIFT-F11 (as SHIFT-F12 would, for me, not work while the browser has the focus).

Frequently I have the use case where I still want to see the last output in the QTermial while moving the focus to another application. Which is currently more or less impossible.

Keep window open when it loses the focus - disabled

  • QTerminal get hidden when another application gets the focus

Keep window open when it loses the focus - enabled

  • QTerminal stays as top window and even might be on top over the window with the current focus

An option to hide/un-hide the QTerminal drop-down manually, while it not stays the top most window, would be also OK for me.

@yan12125
Copy link
Member

yan12125 commented Jan 7, 2023

Thanks, that is a valid use case. I will add a new option to disable Qt::WindowStaysOnTopHint when I find time.


(from #1022 (comment))

Not sure if WM tricks (ex: devilspie/devilspie2 or kwin rules) are enough or qterminal should have an option for it.

Apparently Qt resets _NET_WM_STATE after toggling on/off the dropdown window, so WM tricks may not be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants