Make Red X Close button unclickable on Mac
-
How do I make the red x close button unclickable on mac?
By red x close button I mean the red button in the top left, far left side, near the top left corner that is present in almost every macOS window.
As shown here:
I want this so I don't accidentally close the window.
This might only be a temporary fix until Vivaldi adds confirmation dialog boxes to close windows and quit Vivaldi on mac.
-
@dustinx33 This should work:
.window-close {pointer-events: none;}
I presume the confirm settings doesn't exist on Mac...
-
@Hadden89 Again I'm on Mac. Those two features don't exist on mac.
-
@Hadden89 Do you use mac?
-
@Hadden89 This worked. Thank you.
-
@Hadden89 The CSS modification isn't working anymore. Do you know what could be the problem? It's not working after a restart of Vivaldi.
I first noticed it wasn't working on new windows that I opened after adding the modification, now after a restart it's not working for any window.
-
@dustinx33 I'm actually not on a mac but I can try...
Try this other code:
#browser.mac .window-buttongroup .window-close {pointer-events: none;}
Inspecting this portion of UI code (yours not mine) you may see what is failing...
The mod is actually linked to native mode (if exists on mac) and also the titlebar setting could affect it:
Also, won't work with PWAs because they are always opened as not native.
-
@Hadden89 said in Make Red X Close button unclickable on Mac:
@dustinx33 I'm actually not on a mac but I can try...
Try this other code:
#browser.mac .window-buttongroup .window-close {pointer-events: none;}
Inspecting this portion of UI code (yours not mine) you may see what is failing...
The mod is actually linked to native mode (if exists on mac) and also the titlebar setting could affect it:
Nevermind, I got it working sorry. I added spaces to the name of the folder. I thought I could add spaces to the folder name. Apparently I can't. I thought the no spaces in the name rule only applied to the actual file, but apparently not. It applies to the folder as well.
-
Have you managed to fix this? I used to be able to hide those buttons with the same css commands quoted above, but now nothing works
Added another issue https://forum.vivaldi.net/topic/99448/macos-can-t-remove-buttongroup-after-some-update since this isn't just about making them unclickable, I'd like them gone completely
-
@eugenesv Hi sorry, for getting back to you late. I didn't know they broke. If they did I am just now aware of it because of you saying this. It still works for me on Vivaldi version 6.5.3206. I haven't updated since last year. What version of Vivaldi do you use that it is breaking or not working?
-
@eugenesv Hey I'm trying it right now and it appears you're right, it doesn't seem to work. Don't know why.
-
@eugenesv Yeah, I don't know how to fix it. Might have to go back to a previous version.