Skip to content

Tab drag-and-drop does not create a new window under Wayland (mate-terminal 1.26.x) #478

Description

@pengjusong63-byte

Environment

mate-terminal version: 1.26.1

GTK version: 3.24.41

VTE version: 0.74

Desktop environment: MATE Kylin V11

Session type: Wayland

OS: : Kylin Linux V11

Description

When running under Wayland, mate-terminal does not allow dragging a notebook tab out of the window to create a new window.

This feature works correctly under X11, but under Wayland nothing happens — the tab cannot be detached.

Steps to reproduce

Start mate-terminal in a Wayland session

Open multiple tabs

Try to drag one tab out of the window

Expected result

A new mate-terminal window should be created with the dragged tab.

Actual result

Nothing happens.
The tab remains inside the original window.
No visible error message.

Additional notes

GTK 3.24 on Wayland no longer emits create-window / tab-detached signals for GtkNotebook

Other MATE apps such as pluma support Wayland tab detaching via custom drag-and-drop implementation

It seems mate-terminal relies on the old X11-only GtkNotebook behavior

Suggested direction / possible cause

mate-terminal uses the legacy GtkNotebook “detachable” mechanism, which is not supported under Wayland.

Potential fix options:

Implement custom DnD on the tab label (drag-begin, drag-update, drag-end)

Create a new mate-terminal window manually when drag ends outside the window

Follow the implementation used by pluma Notebook DnD

I can provide a minimal working patch or test code if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions