Bug 403324

Summary: Can only drag tabs from one window into another when using single-process mode
Product: [Applications] konsole Reporter: David <david.cortes.rivera>
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: CONFIRMED ---    
Severity: normal CC: ahartmetz, bugs.kde.org.facelift226, bugseforuns, devel, erbenton, grasm, justin.zobel, kde.kfoar, kdedev, nate, nigvul, nikolakocicbz, postix, xraphael75, zawertun
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=418336
https://bugreports.qt.io/browse/QTBUG-3160
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: attachment-2267002-0.html
attachment-3537836-0.html

Description David 2019-01-17 19:50:25 UTC
STEPS TO REPRODUCE
1. Open a konsole window
2. Open another konsole window
3. Try to drag a tab from one window's tabbar to the other's

OBSERVED RESULT
Tabs are not moved from one window to the other

EXPECTED RESULT
Tabs should be movable between different window's tabbars.
Comment 1 Patrick Silva 2019-02-23 19:06:07 UTC
What is the verion of your konsole?
I can move tabs to another window using konsole 18.12.2 on Arch Linux.
Comment 2 David 2019-02-23 22:04:06 UTC
(In reply to Patrick Silva from comment #1)
> What is the verion of your konsole?
> I can move tabs to another window using konsole 18.12.2 on Arch Linux.

I'm using Konsole 18.04.0 on debian.
Comment 3 Matthieu Gras 2019-02-24 21:28:58 UTC
Have you enabled the option: General->Run all konsole windows in a single process   
?

You might want to try that. If Konsole is not running in a single process it is not possible to move the tabs between two Konsole windows that have been launched separately because Konsole doesn't use the Qt Drag and Drop (only "fake" (changing the cursor shape and moving QWidgets internally) drag and drop)
Comment 4 Matthieu Gras 2019-02-24 21:30:50 UTC
Starting Konsole from a terminal also blocks the "single process" option aswell as launching it with some incompatible parameters.
Comment 5 Justin Zobel 2020-11-03 04:23:01 UTC
(In reply to Matthieu Gras from comment #3)
> Have you enabled the option: General->Run all konsole windows in a single
> process   
> ?

Even with this on I can reproduce this issue on konsole from git master.
Comment 6 Ovidiu-Florin BOGDAN 2021-04-14 08:19:43 UTC
*** Bug 389897 has been marked as a duplicate of this bug. ***
Comment 7 Ovidiu-Florin BOGDAN 2021-04-14 08:30:50 UTC
As of Konsole 20.12.2 if you have "Run all Konsole windows in a single process" enabled, the tab dragging  from one window to another works just fine.

However, if you start Konsole from the terminal by just using the "konsole" command with no arguments, that window cannot share tabs with any other window.

Starting Konsole from the Kickstart or Krunner opens a window with shareable tabs. Even if from KRunner we start the "konsole" command and not the Konsole app, tabs are still shareable.

My system:
Linux/KDE Plasma: Fedora 33 KDE
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Comment 8 Ovidiu-Florin BOGDAN 2021-04-14 08:31:18 UTC
*** Bug 396891 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2021-06-16 16:33:41 UTC
*** Bug 438740 has been marked as a duplicate of this bug. ***
Comment 10 Synthetic451 2024-05-30 04:20:28 UTC
I've enabled the "Run all Konsole windows in a single process" setting and I am still not able to drag tabs from one window to another. This is happening on Konsole 24.05.0 on Arch Linux
Comment 11 TraceyC 2024-05-30 18:00:00 UTC
When my system was running Plasma 5, with "Run all konsole windows in a single process" enabled, I was able to drag tabs from one konsole window to another. I had been using a shortcut to launch the initial instance.

Now that my system is running Plasma 6, even with that setting enabled, I can no longer drag tabs between konsole windows, regardless of how I launch them.

- From krunner
- From kickstart
- By entering `konsole` in a konsole window
- Using File - New Window in konsole

When I drag a tab out of a window, it will only detach to a new window.
Comment 12 tcanabrava 2024-05-30 19:00:33 UTC
Created attachment 170005 [details]
attachment-2267002-0.html

probably related to wayland. can you test on a x11 session?

On Thu, 30 May 2024 at 20:00 TraceyC <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=403324
>
> --- Comment #11 from TraceyC <kdedev@tlcnet.info> ---
> When my system was running Plasma 5, with "Run all konsole windows in a
> single
> process" enabled, I was able to drag tabs from one konsole window to
> another. I
> had been using a shortcut to launch the initial instance.
>
> Now that my system is running Plasma 6, even with that setting enabled, I
> can
> no longer drag tabs between konsole windows, regardless of how I launch
> them.
>
> - From krunner
> - From kickstart
> - By entering `konsole` in a konsole window
> - Using File - New Window in konsole
>
> When I drag a tab out of a window, it will only detach to a new window.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 13 postix 2024-05-30 19:17:49 UTC
> probably related to wayland. can you test on a x11 session?
Can confirm that it doesn't work on Plasma 6.0.5 Wayland and Konsole 24.0.2. 

On X11 it works by sliding the tab over to another Konsole window, however the whole UI is pretty non intuitive and difficult to use.
Comment 14 TraceyC 2024-05-30 19:22:00 UTC
(In reply to tcanabrava from comment #12)
> Created attachment 170005 [details]
> attachment-2267002-0.html
> 
> probably related to wayland. can you test on a x11 session?

Can confirm that the inability to drag tabs to a new window at all is specific to Wayland. In an X11 session:
- Started 2 Konsole windows from Kickoff
- Created a second tab in one window and dragged it to the second window
 
Also successful when launching from KRunner
Comment 15 TraceyC 2024-05-30 19:22:58 UTC
Current system details:

Operating System: Solus 4.5
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.8.11-292.current (64-bit)
Graphics Platform: X11
Comment 16 EasyNetDev 2024-11-11 14:40:39 UTC
I can confirm the problem using Konsole Version 23.08.1 on Wayland KDE Plasma 5.27.11.

My system:
Debian OS 13 (Trixie)
KDE Plasma: 5.27.11
KDE Framework: 5.115.0
Qt Version 5.15.15
Kernel 6.11.5-amd64 (64-bit)

I didn't test in X11 yet, but I'm using just Wayland lately.
Comment 17 tcanabrava 2024-11-11 17:06:42 UTC
Created attachment 175731 [details]
attachment-3537836-0.html

work as intended. konsole has no server counterpart that could potentially
make it work with multiple processes

On Mon, 11 Nov 2024 at 15:40 Adrian Ban <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=403324
>
> Adrian Ban <devel@easynet.dev> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |devel@easynet.dev
>
> --- Comment #16 from Adrian Ban <devel@easynet.dev> ---
> I can confirm the problem using Konsole Version 23.08.1 on Wayland KDE
> Plasma
> 5.27.11.
>
> My system:
> Debian OS 13 (Trixie)
> KDE Plasma: 5.27.11
> KDE Framework: 5.115.0
> Qt Version 5.15.15
> Kernel 6.11.5-amd64 (64-bit)
>
> I didn't test in X11 yet, but I'm using just Wayland lately.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.