[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2024-03-01 Thread Andrey
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #25 from Andrey  ---
Andreas, X11 and Wayland have completely different codepaths there:
it's kded for X11 and kwin for Wayland.

You have to dig into how layout saving works for apps in kwin.
Ask if you need help, thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2024-03-01 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #24 from Andreas Korb  ---
This appears to still be a issue in KDE 6, unfortunately. Is there any plan for
this issue?
Otherwise, I'm actually willing to implement this myself, as it is the only
thing that hinders me of fully switching to Wayland. Then, I'd appreciate some
pointers, e.g., why it worked under X11 but doesn't under Wayland as of now,
and which code areas are relevant. Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #23 from Andreas Korb  ---
Created attachment 153898
  --> https://bugs.kde.org/attachment.cgi?id=153898&action=edit
Keyboard layout settings

(In reply to David from comment #22)
> (In reply to Andreas Korb from comment #21)
> 
> Perhaps you haven't set the layout switching policy to "application"?
> (Settings -> Input devices -> Keyboard -> Layouts -> Switching policy).

I think I have (see attachment)

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread David
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #22 from David  ---
(In reply to Andreas Korb from comment #21)
> (In reply to David from comment #20)
> > (In reply to Andreas Korb from comment #19)
> > > (In reply to David from comment #18)
> > > > (In reply to Andrey from comment #16)
> > > > > Andreas, that's because if an application closed it won't be treated 
> > > > > as the
> > > > > same application when it run again.
> > > > > I don't know how to solve this.
> > > > > 
> > > > > If you open a new window from existing application, the layout will be
> > > > > preserved there.
> > > > 
> > > > For the most part, applications do remember the layout after closing 
> > > > them
> > > > and launching them again.
> > > 
> > > I didn't find one yet where it works. Could you give me a specific example
> > > of an application where it works?
> > 
> > Kate, notepadqq, gedit, JuK, among many others.
> 
> I just tried Kate and notepadqq on the latest KDE Neon and both don't
> remember the keyboard layout after restarting the application. Not sure what
> I'm doing wrong.

Perhaps you haven't set the layout switching policy to "application"? (Settings
-> Input devices -> Keyboard -> Layouts -> Switching policy).

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #21 from Andreas Korb  ---
(In reply to David from comment #20)
> (In reply to Andreas Korb from comment #19)
> > (In reply to David from comment #18)
> > > (In reply to Andrey from comment #16)
> > > > Andreas, that's because if an application closed it won't be treated as 
> > > > the
> > > > same application when it run again.
> > > > I don't know how to solve this.
> > > > 
> > > > If you open a new window from existing application, the layout will be
> > > > preserved there.
> > > 
> > > For the most part, applications do remember the layout after closing them
> > > and launching them again.
> > 
> > I didn't find one yet where it works. Could you give me a specific example
> > of an application where it works?
> 
> Kate, notepadqq, gedit, JuK, among many others.

I just tried Kate and notepadqq on the latest KDE Neon and both don't remember
the keyboard layout after restarting the application. Not sure what I'm doing
wrong.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread David
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #20 from David  ---
(In reply to Andreas Korb from comment #19)
> (In reply to David from comment #18)
> > (In reply to Andrey from comment #16)
> > > Andreas, that's because if an application closed it won't be treated as 
> > > the
> > > same application when it run again.
> > > I don't know how to solve this.
> > > 
> > > If you open a new window from existing application, the layout will be
> > > preserved there.
> > 
> > For the most part, applications do remember the layout after closing them
> > and launching them again.
> 
> I didn't find one yet where it works. Could you give me a specific example
> of an application where it works?

Kate, notepadqq, gedit, JuK, among many others.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #19 from Andreas Korb  ---
(In reply to David from comment #18)
> (In reply to Andrey from comment #16)
> > Andreas, that's because if an application closed it won't be treated as the
> > same application when it run again.
> > I don't know how to solve this.
> > 
> > If you open a new window from existing application, the layout will be
> > preserved there.
> 
> For the most part, applications do remember the layout after closing them
> and launching them again.

I didn't find one yet where it works. Could you give me a specific example of
an application where it works?

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-20 Thread David
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #18 from David  ---
(In reply to Andrey from comment #16)
> Andreas, that's because if an application closed it won't be treated as the
> same application when it run again.
> I don't know how to solve this.
> 
> If you open a new window from existing application, the layout will be
> preserved there.

For the most part, applications do remember the layout after closing them and
launching them again.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-19 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #17 from Andreas Korb  ---
(In reply to Andrey from comment #16)
> Andreas, that's because if an application closed it won't be treated as the
> same application when it run again.
> I don't know how to solve this.
> 
> If you open a new window from existing application, the layout will be
> preserved there.

First of all, thank a lot for you blazingly fast response!
For X11 it works as I would expect. I guess the X11 subsystem handled this then
separately somehow? (I don't know much about the inner systems here)

Maybe another point is interesting. In my attached video, if you look at the
keyboard layout indicator when I open Konsole the second time and type the
first 'z' (at around 00:11), the indicator jumps like it updates something, but
stays at the default layout.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-19 Thread Andrey
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #16 from Andrey  ---
Andreas, that's because if an application closed it won't be treated as the
same application when it run again.
I don't know how to solve this.

If you open a new window from existing application, the layout will be
preserved there.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-11-19 Thread Andreas Korb
https://bugs.kde.org/show_bug.cgi?id=452445

Andreas Korb  changed:

   What|Removed |Added

 CC||andreas.d.k...@gmail.com

--- Comment #15 from Andreas Korb  ---
Created attachment 153884
  --> https://bugs.kde.org/attachment.cgi?id=153884&action=edit
Presentation of bug 452445

This continues to happen for me for all applications under Wayland. I just
tried it in a freshly installed KDE Neon VM (neon-user-20221117-0714.iso, KDE
5.26.3) and could reproduce it there as well.

On my host machine (manjaro, KDE 5.26.3) I recorded a video to show the
problem. As you can see, the system does not remember that I previously set the
keyboard layout to US and starts with the default DE layout.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-05-20 Thread David
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #14 from David  ---
Somehow, things are now working correctly in KDE 5.24.5 from debian sid. Layout
is now remembered for flatpak-installed Tauon Music Box at least.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-04-25 Thread Andrey
https://bugs.kde.org/show_bug.cgi?id=452445

--- Comment #13 from Andrey  ---
I didn't try how it works on X11 but it also makes sense to check it for
Wayland, maybe in separate report.
IIRC the layout is only saved there for apps instantiating itself (e.g opening
a new window in Konsole).
So if Telegram is closed to tray, no layout restoration takes place on
reopening.
That might be more attractive point to apply the efforts.

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-04-24 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=452445

Harald Sitter  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

-- 
You are receiving this mail because:
You are watching all bug changes.

[systemsettings] [Bug 452445] per-application keyboard layout not persisting

2022-04-24 Thread Harald Sitter
https://bugs.kde.org/show_bug.cgi?id=452445

Harald Sitter  changed:

   What|Removed |Added

 CC||butir...@gmail.com
Summary|Flatpak apps do not follow  |per-application keyboard
   |keyboard layout policy  |layout not persisting
   |correctly   |
  Component|general |kcm_keyboard
Product|xdg-desktop-portal-kde  |systemsettings

-- 
You are receiving this mail because:
You are watching all bug changes.