mate-desktop / caja

Caja, the file manager for the MATE desktop
https://mate-desktop.org/
Other
268 stars 145 forks source link

Caja's menubar is not draggable #826

Open TomaszGasior opened 7 years ago

TomaszGasior commented 7 years ago

Expected behaviour

Caja menubar should be draggable such as in other GTK3 apps.

Actual behaviour

There are a lot of themes that have the same background color in menubar and in window decoration. I use Numix GTK3 theme, which have this combination. In GTK3 apps like Engrampa, Mousepad, Pluma, Atril, GNOME Nettool etc., I can move window not only by dragging window decoration but also by dragging menubar (it is normal GTK3 behavior - it must be set in theme). Currently it is not possible with Caja. Caja's window cannot be moved by dragging menubar.

Steps to reproduce the behaviour

Just try to move window by dragging menubar.

Package version

caja 1.18.3-1

Linux Distribution

Manjaro

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/48119487-caja-s-menubar-is-not-draggable?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F651521&utm_medium=issues&utm_source=github).
TomaszGasior commented 6 years ago

Can someone fix it? It's very annoying for me if I want to move Caja's window and I have to be careful because window titlebar is draggable and menubar isn't and both have the same background. In other GTK3 MATE apps problem doesn't exists — menubar is draggable.

jhasse commented 6 years ago

I've tried to find out why it was happening, but didn't succeed. I stripped Caja of nearly everything so that only the menu bar was left. While this simple window setup worked in a Gtk example application, somehow the menu bar in Caja still wasn't draggable.

It works in Nemo, which is strange. But I couldn't find any clues in their source.

Does anybody have any idea why this might happen?

TomaszGasior commented 6 years ago

Ability to drag window by dragging menubar is default (if GTK theme specify it) so there is no any additional code in Nemo, which allows it, but contrariwise — there is an code in Caja, which (accidently) disallows it.

jhasse commented 6 years ago

As both Caja and Nemo are forks of Nautilus, the code which disables it must have been removed in Nemo or added in Caja at some point.

ICHx commented 5 years ago

I have a similar problem. Recently I cannot move/right click on Caja's titlebar, while I can on Nemo

Problem exists on Metacity/Marco, not on Openbox

圖片