[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-11 Thread Michal Hlavac
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #33 from Michal Hlavac  ---
Sorry, the cause of my problem was file ~/.Xresources with Xft.dpi:   192

When I removed it, it works as expected. thanks

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Luca Bacci
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #32 from Luca Bacci  ---
Alright! May I ask how did you set the DPI value for Qt / Plasma applications?

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Michal Hlavac
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #31 from Michal Hlavac  ---
Force DPI is off.
https://paste.opensuse.org/pastes/462da4efefda

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Luca Bacci
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #30 from Luca Bacci  ---
Ok, things look good there. Can you also have a look in System Settings >
Appearance > Fonts > Force Font DPI. Is that set to 96 DPI or some other value?

Luca

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Michal Hlavac
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #29 from Michal Hlavac  ---
Hi Luca, I run primary on X11. But I tried Wayland and there it looks like all
Plasma and also GTK applications runs with DPI 96.



X11 output:

hlavki@hlknb:~> dump_xsettings
Gdk/UnscaledDPI 98304
Gdk/WindowScalingFactor 1
Gtk/ButtonImages 1
Gtk/CursorThemeName "breeze_cursors"
Gtk/CursorThemeSize 36
Gtk/DecorationLayout "icon:minimize,maximize,close"
Gtk/EnableAnimations 1
Gtk/FontName "Noto Sans,  8"
Gtk/MenuImages 1
Gtk/PrimaryButtonWarpsSlider 0
Gtk/ToolbarStyle 3
Net/IconThemeName "Papirus"
Net/ThemeName "Breeze"

hlavki@hlknb:~> ps aux | grep -iE 'xsettings|kded'
hlavki   22696  1.3  0.4 2202624 154352 ?  Ssl  22:22   0:01 /usr/bin/kded5
hlavki   22794  0.0  0.0   7656  4480 ?S22:22   0:00
/usr/bin/xsettingsd
hlavki   25977  0.0  0.0   6528  2304 pts/1S+   22:24   0:00 grep
--color=auto -iE xsettings|kded

Global Scale: 100%



Wayland output:

Gdk/UnscaledDPI 98304
Gdk/WindowScalingFactor 1
Gtk/ButtonImages 1
Gtk/CursorThemeName "breeze_cursors"
Gtk/CursorThemeSize 36
Gtk/DecorationLayout "icon:minimize,maximize,close"
Gtk/EnableAnimations 1
Gtk/FontName "Noto Sans,  8"
Gtk/MenuImages 1
Gtk/PrimaryButtonWarpsSlider 0
Gtk/ToolbarStyle 3
Net/IconThemeName "Papirus"
Net/ThemeName "Breeze"

hlavki   26573  0.8  0.4 2273276 149968 ?  Ssl  22:25   0:00 /usr/bin/kded5
hlavki   26627  0.0  0.0   7668  4224 ?S22:25   0:00
/usr/bin/xsettingsd
hlavki   28704  0.0  0.0   6528  2304 pts/2S+   22:27   0:00 grep
--color=auto -iE xsettings|kded

Global Scale: 100%

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Luca Bacci
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #28 from Luca Bacci  ---
Hello, Michal! Is it on a Wayland session or X11 session? Can you post the
output of:

dump_xsettings
ps aux | grep -iE 'xsettings|kded'

Also, what scaling settings do you have in System Settings > Display and
Monitor

Thank you,
Luca

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-04-10 Thread Michal Hlavac
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #27 from Michal Hlavac  ---
After upgrading to framework 5.105 all GTK application runs with dpi 96.
Plasma: 5.27.4
Framework: 5.105
Qt: 5.15.8
Kernel: 6.2.9

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-17 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=466463

Fushan Wen  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
   |ma/kde-gtk-config/commit/1b |ma/kde-gtk-config/commit/d2
   |66b4b5fd6ccc8b5b938fcaaed78 |a84a92ca563b94fdfbea9d8edb8
   |639360dfc47 |eb5955bccf0

--- Comment #26 from Fushan Wen  ---
Git commit d2a84a92ca563b94fdfbea9d8edb8eb5955bccf0 by Fushan Wen, on behalf of
Luca Bacci.
Committed on 17/03/2023 at 17:04.
Pushed by fusionfuture into branch 'Plasma/5.27'.

Beside monitor scaling factors, a user may specify a preferred
text DPI size from the system configuration utility (KCM fonts)
That setting is stored inside the kcmfonts configuration file;
one entry is kept for Plasma/X11 sessions, "forceFontDPI", and
another for Plasma/Wayland sessions, "forceFontDPIWayland".

Here we make kde-gtk-config read such entries (depending on the
Plasma session type) and then set the GTK text scaling settings
accordingly.

Fixes #3
Related: bug 461106
FIXED-IN: 5.27.4


(cherry picked from commit 1b66b4b5fd6ccc8b5b938fcaaed78639360dfc47)

M  +2-0kded/config_editor/gsettings.cpp
M  +9-1kded/config_editor/xsettings.cpp
M  +1-0kded/config_editor/xsettings.h
M  +23   -0kded/configvalueprovider.cpp
M  +5-0kded/configvalueprovider.h
M  +37   -12   kded/gtkconfig.cpp
M  +2-0kded/gtkconfig.h

https://invent.kde.org/plasma/kde-gtk-config/commit/d2a84a92ca563b94fdfbea9d8edb8eb5955bccf0

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-17 Thread Fushan Wen
https://bugs.kde.org/show_bug.cgi?id=466463

Fushan Wen  changed:

   What|Removed |Added

   Version Fixed In||5.27.4
 Status|ASSIGNED|RESOLVED
  Latest Commit||https://invent.kde.org/plas
   ||ma/kde-gtk-config/commit/1b
   ||66b4b5fd6ccc8b5b938fcaaed78
   ||639360dfc47
 Resolution|--- |FIXED

--- Comment #25 from Fushan Wen  ---
Git commit 1b66b4b5fd6ccc8b5b938fcaaed78639360dfc47 by Fushan Wen, on behalf of
Luca Bacci.
Committed on 17/03/2023 at 16:51.
Pushed by fusionfuture into branch 'master'.

Beside monitor scaling factors, a user may specify a preferred
text DPI size from the system configuration utility (KCM fonts)
That setting is stored inside the kcmfonts configuration file;
one entry is kept for Plasma/X11 sessions, "forceFontDPI", and
another for Plasma/Wayland sessions, "forceFontDPIWayland".

Here we make kde-gtk-config read such entries (depending on the
Plasma session type) and then set the GTK text scaling settings
accordingly.

Fixes #3
Related: bug 461106
FIXED-IN: 5.27.4

M  +2-0kded/config_editor/gsettings.cpp
M  +9-1kded/config_editor/xsettings.cpp
M  +1-0kded/config_editor/xsettings.h
M  +23   -0kded/configvalueprovider.cpp
M  +5-0kded/configvalueprovider.h
M  +37   -12   kded/gtkconfig.cpp
M  +2-0kded/gtkconfig.h

https://invent.kde.org/plasma/kde-gtk-config/commit/1b66b4b5fd6ccc8b5b938fcaaed78639360dfc47

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-15 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=466463

Nate Graham  changed:

   What|Removed |Added

 CC||slartibar...@gmail.com

--- Comment #24 from Nate Graham  ---
*** Bug 467386 has been marked as a duplicate of this bug. ***

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-05 Thread Parag W
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #23 from Parag W  ---
#63 Fixes the problem for me as well.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-05 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #22 from painless roaster  ---
(In reply to Luca Bacci from comment #20)
> Hi painless.roaster! Could you try again with
> https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/63? It's now
> finished and should work as is.
> 
> Thanks!

I've tried the fix to build the kde-gtk-config package in Fedora 36 and 37.
This solved the problem for both of them. Good work. Thank you!

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-04 Thread Parag W
https://bugs.kde.org/show_bug.cgi?id=466463

Parag W  changed:

   What|Removed |Added

 CC||parag.l...@gmail.com

--- Comment #21 from Parag W  ---
Created attachment 157004
  --> https://bugs.kde.org/attachment.cgi?id=157004&action=edit
Messed up desktop on Wayland

This looks like the same issue - hopefully will be addressed in .3 release -
Plasma Wayland is unusable on 5.27.x - OpenSuSE Tumbleweed, 4k monitor, scaling
set to 200%. Not just for GTK apps - the whole desktop and all KDE apps have
wrong scale.

Works fine if I switch to X11 so seems to be Wayland specific.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-04 Thread Luca Bacci
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #20 from Luca Bacci  ---
Hi painless.roaster! Could you try again with
https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/63? It's now
finished and should work as is.

Thanks!

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-03 Thread Michael Hamilton
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #19 from Michael Hamilton  ---
(In reply to Nate Graham from comment #16)
> *** Bug 466506 has been marked as a duplicate of this bug. ***

In answer to the question from Bug 466506: 
> Can you try again with Plasma 5.27.2? We removed some unnecessary font size 
> handling stuff in that bugfix release.

Tumbleweed updated to 5.27.2 didn't help, it's the same as I described in Bug
466506.  

Disabling the GNOME/GTK Settings Synchronisations Service remains an easy
workaround.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-02 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=466463

Nate Graham  changed:

   What|Removed |Added

   Keywords||regression

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-01 Thread Michael Hamilton
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #18 from Michael Hamilton  ---
(In reply to Michal Hlavac from comment #4)
> Thanks Luca, would be really great to have it in 5.27.2, anyway maybe a kind
> of workaround for GTK3+ & java applications is to run: 
> 
> GDK_SCALE=2 program
> 
> or echo "GDK_SCALE=2" >> ~/.profile 
> 
> this basically saves my work life.

The easiest workaround is to use settings->Startup and Shutdown->Background
Services and disable GNOME/GTK Settings Synchronisation Service - fixes KDE and
other app's (as noted in https://bugs.kde.org/show_bug.cgi?id=466506).

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-01 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #17 from painless roaster  ---
Version 5.27.2 did not solve the problem. :-(

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-01 Thread Rex Dieter
https://bugs.kde.org/show_bug.cgi?id=466463

Rex Dieter  changed:

   What|Removed |Added

 CC||rdie...@gmail.com

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=466463

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-03-01 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=466463

Nate Graham  changed:

   What|Removed |Added

 CC||mich...@actrix.gen.nz

--- Comment #16 from Nate Graham  ---
*** Bug 466506 has been marked as a duplicate of this bug. ***

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #15 from painless roaster  ---
(In reply to Bug Janitor Service from comment #8)
> A possibly relevant merge request was started @
> https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/64

I tried the patch and it didn't help.
So far, uninstalling xsettingsd works best.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #14 from painless roaster  ---
(In reply to nyanpasu64 from comment #13)
> Not sure what's going on... Is the "xft/DPI XSetting" the variable seen by
> `xrdb -query -all`? Observations:
> 
> - `xrdb -query -all|grep Xft|sort` shows `Xft.dpi:120` even with
> windows erroneously at 96dpi.
> - Running xsettingsd (not sure what it does) fixes DPI, even after Ctrl-C.
> Running again reverts to 96 DPI, but Ctrl-C reapplies font DPI.

That's a good point about xsettingsd. If the whole xsettingsd package is
uninstalled, everything goes without a problem. :-)

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread nyanpasu64
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #13 from nyanpasu64  ---
Not sure what's going on... Is the "xft/DPI XSetting" the variable seen by
`xrdb -query -all`? Observations:

- `xrdb -query -all|grep Xft|sort` shows `Xft.dpi:120` even with
windows erroneously at 96dpi.
- Running xsettingsd (not sure what it does) fixes DPI, even after Ctrl-C.
Running again reverts to 96 DPI, but Ctrl-C reapplies font DPI.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #12 from painless roaster  ---
(In reply to Bug Janitor Service from comment #8)
> A possibly relevant merge request was started @
> https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/64

Well, that's really unexpected. On fedora, removing the kde-gtk-config package
solves the problem of native kde applications. So it is indeed possible that
the patch will help.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread Luca Bacci
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #11 from Luca Bacci  ---
(In reply to painless roaster from comment #9) 
> It's not just a problem with gtk applications. DPI is not accepted even by
> native kde apps.

Currently kde-gtk-config sets the xft/DPI XSetting which is read both by GTK
and Qt applications, hence why the problem appears even outside of GTK
applications

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #10 from painless roaster  ---
(In reply to nyanpasu64 from comment #7)
> I noticed that restarting kwin_x11 set the title bar DPI from override 120
> to default 96, and running `killall kded5` caused my override DPI to apply
> again.
> 
> I think that every time I restart plasma-kded.service, there's a random
> chance that 120 DPI applies (instantly to Firefox and Armcord), Armcord's
> font size grows and shrinks quickly, or nothing at all happens (remains at
> 96 DPI). Is there a race condition somewhere in kded5's code?

I confirm that killing the kded5 task temporarily solves the problem.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread painless roaster
https://bugs.kde.org/show_bug.cgi?id=466463

--- Comment #9 from painless roaster  ---
(In reply to Bug Janitor Service from comment #8)
> A possibly relevant merge request was started @
> https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/64

It's not just a problem with gtk applications. DPI is not accepted even by
native kde apps.

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=466463

Bug Janitor Service  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|ASSIGNED

--- Comment #8 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/64

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

[plasmashell] [Bug 466463] Different scaling on HiDpi display for applications in 5.27.1

2023-02-28 Thread David Edmundson
https://bugs.kde.org/show_bug.cgi?id=466463

David Edmundson  changed:

   What|Removed |Added

 CC||k...@davidedmundson.co.uk
   Target Milestone|--- |1.0
   Assignee|kwin-bugs-n...@kde.org  |plasma-b...@kde.org
  Component|general |Startup process
Product|kwin|plasmashell

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