Bug 327802 - No way to hide close button on tab of grouped window
Summary: No way to hide close button on tab of grouped window
Status: RESOLVED WORKSFORME
Alias: None
Product: Oxygen
Classification: Plasma
Component: win deco (other bugs)
Version First Reported In: 4.11.90
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-19 10:12 UTC by Rodrigo Fernandes
Modified: 2023-02-01 05:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Fernandes 2013-11-19 10:12:48 UTC
Some configuration option should be provided to hide the close (X) button that appears on the each tab.

In my current workflow I use window tabs heavily, and removed the window close button(via window-decorations). I close the window with right click on title or shortcuts. I could not find any way to remove the (X) that appears on each tab of a group of windows



Reproducible: Always

Steps to Reproduce:
1. Group 2 or more windows together, a close (X) button appears on each tab
2. Accidentally click on it when trying change windows
Comment 1 Hugo Pereira Da Costa 2013-11-19 10:20:13 UTC
I'd rather not add an option for this (deeming it too much of a corner use-case).
Now, I guess we could implement some "smart" hiding, a la, e.g. firefox:
in firefox, the close button gets hidden for all tabs except the active one, when tab size becomes too small (because there are too many). 
Would that work for you ?
Comment 2 Rodrigo Fernandes 2013-11-19 10:49:15 UTC
Yes, that's an appropriate compromise.

I any case should you wish to implement the full request, could you not reuse the settings for the presence of the close button (from configure buttons)?
That is if I don't want the close window button, the tab close window button would also not appear.
Comment 3 Hugo Pereira Da Costa 2013-11-19 10:53:29 UTC
@Rodrigo
I guess that would work too, but then I'm sure to get a bug report to ask for having the tab-close button and not the window close button ...

ok. So now I also realize that the window close button is actually only closing the current tab when several windows are grouped. Maybe I need to think more about this :)
Comment 4 Martin Flöser 2013-11-19 10:59:38 UTC
> ok. So now I also realize that the window close button is actually only
> closing the current tab when several windows are grouped. Maybe I need to
> think more about this :)
maybe make the normal close button a "close window group" with maybe a dialog 
asking whether that's what is really wanted like closing multiple tabs in a 
browser.

Hiding the close buttons by default on the non-active tab might still be a 
nice addition.
Comment 5 Hugo Pereira Da Costa 2013-11-19 11:24:51 UTC
@Martin
on the window close button, I agree. 
Now: should that go to oxygen ? Or upstream (kwin) ? (so that all tabbed decoration have consistent behavior)
Comment 6 Martin Flöser 2013-11-19 12:13:42 UTC
> Now: should that go to oxygen ? Or upstream (kwin) ? (so that all tabbed
> decoration have consistent behavior)
I'd say KWin (libkdecoration) as we need to make that in a way that we don't 
run into issues with trying to decorate our own window.
Comment 7 Rodrigo Fernandes 2013-11-19 20:09:15 UTC
>maybe make the normal close button a "close window group"

I think that would change the semantics of the closing button too much.

I've given it a bit more though and came up with the following option

A dropdown in the "configure button..." dialog

Show close button : {Always, Only on Active, Never};

Additionally to ensure the different semantics a new close all windows button would be added, which would, akin to the appmenu icon, only show up if there are tabs in the current window.

I can add some mockups if desired.

I'm also willing to implement this, provided I can have someone to ask questions about the codebase.
Comment 8 Thomas Lübking 2013-11-19 23:48:43 UTC
Presuming the close button behavior stays at it is, the only thing required is the deco to provde or interpret an option to show close buttons for each tab (as close still closes the active one)

In general, i'd agree that if the deco is configured to not show a close button, it should not appear in tabs either.

If this is not the case (ie. close is supposed to be generally shown) the decoration could hide the global close button in favor of the individual ones.


About closing all tabbed windows by the global close button:
Right now one can keep clicking the close button until the window disappears.
If the close button behavior changes to close all open tabs, we'll have to ask the user (the behavior in a way differs from the one of untabbed windows) what means you click the close button and then point and click the "ok" button, ie. this will only benefit for many tabbed windows (>> 2)

The question here is how window tabbing is used - open browser tabs can easily count dozens ;-)
Comment 9 Andrew Crouthamel 2018-11-11 04:23:19 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-11-21 04:22:11 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Justin Zobel 2023-01-02 07:43:39 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 12 Bug Janitor Service 2023-01-17 05:16:25 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2023-02-01 05:05:43 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!