Closed nerdius closed 7 years ago
Hi, you dont need all those steps to reproduce it!! :D I have a very thin panel and with embedded menu in ActiveWindowControl widget everything works perfect except some times crash (in very specific apps) only the menu and just stop working. But if I use the global menu widget I have plasma shell crash immediately (I believe reason is the thin panel and the problem appears after the last updates to me.. I know that because 2 weeks ago worked fine)! I think it's not issue of ActiveWindowControl but global menu functionality itself in plasma! (maybe I'm wrong..)
It might be related to issue #42, although in my case, last time I tried, it crashed latte panels but not plasma ones.
The particular setting 24 px in your case, 32 px in mine, may depend on screen size and/or font dpi and/or font size and/or the particular font being used... this may explain why a crash in one system is difficult to be reproduced in another...
@kupiqu What does this webpage tell you? In my case it's 96 DPI, and 32 / 24 × 96 = 128. So, if the theory is right, yours should be 128 DPI.
Mmm, chromium, firefox and konqueror give me different numbers, you can better check it out in systemsettings -> fonts
In my case I force 144 dpi (96 by default).
However, I think it depends on fontsize too, give it a try, modify fontsize in systemsettings (you may need to logout or restart plasma) and then try to reproduce the crash at 24px, depending on the direction of the change, I think the crash may already happen for >24px, or you may need to go down 24px...
In fact the way I currently workaround the issue is by scaling down the font size within the active window control applet (x 0.95)
I forced 144 DPI and restarted the shell. Everything became ginormous, and yeah, now it crashes on 32 px panel height. The default setting was 96 DPI in my case too.
In fact the way I currently workaround the issue is by scaling down the font size within the active window control applet (x 0.95)
I don't like that workaround — the text becomes smaller compared to that what's on the window title bars. My workaround is setting the panel height to 26 px instead of 24.
I just updated to 1.7.2 and I can still replicate this.
Confirmed, replicated (96DPI fonts ~ 24px panel height). Possibly fixed in latest commit. Please try :).
It fixes the issue for me, which is nice. However, this is at the expense of a smaller font size in buttons as well as an offset between title (vertically centered) and buttons text (shifted up).
There is also the "menu button text size scale", which doesn't seem to modify anything in my system. Might it be because it is somehow at its limit size already?
It seems the shifted up text in buttons cannot be easily avoided other then reimplementing the ToolButtons with something different. I'll work on that. In the meantime try just commited code. It should fix the situation slightly. I've also fixed the "menu button text size scale", it should now work.
I see, looking forward for your new implementation of the toolbuttons.
The shift right now with last commit is still there, perhaps a bit smaller, but not so sure.
But I totally confirm that "menu button text size scale" now works great :)
Confirmed. It seems to be fixed in the latest commits (3f0ad52 & 300558f).
The applet causes the entire Plasma Shell to crash when it's on the panel with the height of exactly 24 pixels (no more or less), the application menu is enabled, and a Qt/KDE application that has a menu is in focus.
Version: 1.7.1.
Reproducible: Always.
Steps to reproduce:
Actual results:
Expected results: