Bug 379488 - [Multiple separate X11 screens] [Awesome WM] kate starts on wrong tag of current active X11 screen
Summary: [Multiple separate X11 screens] [Awesome WM] kate starts on wrong tag of curr...
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 17.04.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-03 20:29 UTC by Manfred Knick
Modified: 2017-07-25 15:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
emerge --info kate >> 0_emerge--info-kate.txt (5.82 KB, text/plain)
2017-05-03 20:29 UTC, Manfred Knick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Knick 2017-05-03 20:29:46 UTC
Created attachment 105329 [details]
emerge --info kate >> 0_emerge--info-kate.txt

Overview:
https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298620529

Description of Startup Procedure:
https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298611832

Observation of Patterns:
https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298374308

Please, let me know which further information would be helpful.
Comment 1 Manfred Knick 2017-05-04 08:42:04 UTC
In contrast to

. . . "konsole  --separate"

[ https://github.com/awesomeWM/awesome/issues/598#issuecomment-166920100 ] ,

. . . "kate --startanon"
. . . "kate  -s"
. . . "kate --n"

do not help, as already stated in

[ https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298611832 ] .
Comment 2 Manfred Knick 2017-05-08 18:18:03 UTC
CONFIRM:
" ... awesome pretty much does the same thing as you do when you start kate from a terminal."
https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298390441

At the very end, the cross-check findings concerning "FVWM -s" in
[ https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298620529 ]
very much caught myself by suprise against all gathered expectation.
Comment 3 Manfred Knick 2017-06-07 16:28:17 UTC
Meanwhile also verified on ctwm with 4 screens.
Comment 4 Manfred Knick 2017-06-07 16:29:01 UTC
Although confirmed as working stable multiple times,
unfortunately, Elv13 stated that nobody @ Awesome would care about
independent X11 screens ("ZaphoMode") any more;
c.f. https://github.com/awesomeWM/awesome/issues/598#issuecomment-305114301 ff.

Same disinterest stated by leading upstream (=KDE) developers.

If really nobody cares besides me,
I do not mind to close as "WONTFIX".
Comment 5 Christoph Feck 2017-06-13 17:11:02 UTC
Since you reported it for multiple KDE applications, are there actually KDE applications that work correctly? In other words, is there anything that can be fixed inside Kate, or is this a general problem with all Qt5 applications?
Comment 6 Manfred Knick 2017-06-13 19:22:53 UTC
(In reply to Christoph Feck from comment #5)

> Since you reported it for multiple KDE applications,
.....................^^.....^^^^^^^^ ???

Sorry - I don't understand.

> are there actually KDE
> applications that work correctly?
Lots of.

> In other words, is there anything that can
> be fixed inside Kate, 
Surely. Esp., c.f. 
[ https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298638157 ]

To me, the code trying to map new KDE requests to already running ones seems broken.

> or is this a general problem with all Qt5 applications?
Definitely _not_ .

Perhaps, you might consider reading the links referenced in "Description" above,
esp. "Overview" and "... Patterns".

Then, note the contradictory cross-check findings concerning ctwm and FVWM.

You are welcome to use PM as desired.
Comment 7 Christoph Cullmann 2017-07-25 12:49:43 UTC
Kate reuses existing instances.
It ATM tries to reuse the "right" instance based on your current active virtual desktop.
kate -n will avoid that, but might not be that nice to use, as you will get a new window on each call.
I don't see how I can "change" kate to help your with that issue.
Comment 8 Manfred Knick 2017-07-25 15:38:43 UTC
(In reply to Christoph Cullmann from comment #7)
> Kate reuses existing instances.
Which is a very good habit, indeed!

> It ATM tries to reuse the "right" instance 
>   based on your current active virtual desktop.
.............^^^^.^^^^^^^........................

Not precisely: it ignores from which X11 Screen it is requested.

> kate -n will avoid that, ...
No - c.f. (comment #1) :
>
> . . . "kate --n"
> 
> do not help, as already stated in ... 

> I don't see how I can "change" kate to help your with that issue.
Evaluate the _tuple_ [ X11 Screen | virtual screen ] of requesting
in kate's initial code trying to identify 
_which_ instance of kate is running on the same X11 Screen.

Two humble questions, for example:

A) https://cgit.kde.org/kate.git/tree/kate/main.cpp#n325   ff

// prefer the Kate instance running on the current virtual desktop

   ??? Does KWindowSystem::currentDesktop() respect Multiple X11 Screens?

B) https://cgit.kde.org/kate.git/tree/kate/main.cpp#n334   ff

// query instance current desktop

   ??? Does QDBusConnection::sessionBus() ?
   ??? Which                 sessionBus() ?   Always that from Screen_0 ?

Compare  --> "B"  in
https://github.com/awesomeWM/awesome/issues/1759#issuecomment-298374308 .


P.S.:   WONTFIX is o.k. for me ...   Thanks for answering!