How can I make it harder to close some windows?

How can I make it harder to close these windows?

I looked at Gnome Tweaks, but could not find anything.

I keep accidentally closing them.

You can not do that for just those two windows

BUT

You can remove the closebutton from all windows

dconf write /org/mate/marco/general/button-layout "'menu:minimize,maximize'"

to undo this action (in other words, to get the closebutton back)

dconf write /org/mate/marco/general/button-layout "'menu:minimize,maximize,close'"

or use the dconf-editor

(Keep in mind that you can always close every window by using the windowlist in the panel)

2 Likes

I did not put all the details in my post.

I want there to be no way to close a window that is already being displaced.

I also need a way to not be able to minimize that windows as well.

And to disable Alt F4 as well.

This did not help me in my endeavor.

andy@7:~$ dconf write /org/mate/marco/general/button-layout "'menu:minimize,maximize'"

Then use this, it will remove all the buttons:

dconf write /org/mate/marco/general/button-layout "'menu:'"
1 Like

It did not work.

I am using version 22.04 if that is relevant.

I will restart my machine and see what happens.

Sorry, I can't remember if or how it was managed in 22.04 (I don't run it anymore)
Best bet is to start dconf-editor and use the search function for 'button-layout'

It should respond immediately, no reboot required

2 Likes

You had the solution. And I learned a lot. :slight_smile:

2 Likes