window/menu: Remove move titlebar onscreen action

A feature that works for server side decorated windows only that
only adds slightly more convenience over the regular "move" action that
is still there.
Keeping it around would complicate some cleanups in upstream Mutter
so just drop it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3332>
This commit is contained in:
Bilal Elmoussaoui 2024-05-21 21:46:06 +02:00
parent f30ffc7f76
commit e6618d093d

View File

@ -97,12 +97,6 @@ export class WindowMenu extends PopupMenu.PopupMenu {
if (!window.allows_resize())
item.setSensitive(false);
if (!window.titlebar_is_onscreen() && type !== Meta.WindowType.DOCK && type !== Meta.WindowType.DESKTOP) {
this.addAction(_('Move Titlebar Onscreen'), () => {
window.shove_titlebar_onscreen();
});
}
item = this.addAction(_('Always on Top'), () => {
if (window.is_above())
window.unmake_above();