Summary: | KWin window rules: Height in pixels not applied | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | matthias.schrumpf |
Component: | rules | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | isma.af |
Priority: | NOR | ||
Version First Reported In: | 5.20.5 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Exported Kwin ruleset for the issue described above.
Exported Kwin ruleset: Issue solved |
Description
matthias.schrumpf
2021-01-27 12:43:20 UTC
I cannot reproduce this on Telegram window. Can you please export and share the ruleset you have for it, so I may try to reproduce the bug? Thanks! Created attachment 135264 [details]
Exported Kwin ruleset for the issue described above.
I added this attachment as requested by user Ismael Asensio
(In reply to Ismael Asensio from comment #1) > I cannot reproduce this on Telegram window. > > Can you please export and share the ruleset you have for it, so I may try to > reproduce the bug? > > Thanks! Thank you for your reply. I have exported the settings and added them as an attachment. Ok, I see. Telegram also enforces a minimum size to its main window. For me that is 570x755. That means that no size below that minimum will be applied (even when forced by a rule, because the minimum limit takes precedence). I guess the other apps you mention also set a minimum size. Good news is that you can also force the Minimum Size property within the same rule, and then override that minimum. Then, the height you had set on the Size property should be applied correctly. Please, try that and report back if that worked for you. Created attachment 135276 [details]
Exported Kwin ruleset: Issue solved
(In reply to Ismael Asensio from comment #4) > Ok, I see. > > Telegram also enforces a minimum size to its main window. For me that is > 570x755. > That means that no size below that minimum will be applied (even when forced > by a rule, because the minimum limit takes precedence). > > I guess the other apps you mention also set a minimum size. > > Good news is that you can also force the Minimum Size property within the > same rule, and then override that minimum. Then, the height you had set on > the Size property should be applied correctly. > > Please, try that and report back if that worked for you. Thank you for your reply. I don't know if I made that clear enough in the original post, but I had also tried to solve the problem by changing the minimum and maximum size properties in various ways. I gave it another try, and it still did not work. I did solve the problem though by also including the properties "Ignore requested geometry" and "Respect size limitations", in addition to your suggstions. I exported and uploaded the ruleset that works for both Telegram and Signal above. (In reply to matthias.schrumpf from comment #6) > (In reply to Ismael Asensio from comment #4) > > Ok, I see. > > > > Telegram also enforces a minimum size to its main window. For me that is > > 570x755. > > That means that no size below that minimum will be applied (even when forced > > by a rule, because the minimum limit takes precedence). > > > > I guess the other apps you mention also set a minimum size. > > > > Good news is that you can also force the Minimum Size property within the > > same rule, and then override that minimum. Then, the height you had set on > > the Size property should be applied correctly. > > > > Please, try that and report back if that worked for you. > > Thank you for your reply. > I don't know if I made that clear enough in the original post, but I had > also tried to solve the problem by changing the minimum and maximum size > properties in various ways. I gave it another try, and it still did not > work. > Ah ok! Sorry I didn't fully understand that part. That change alone did work for me, so that's why I asked again. > I did solve the problem though by also including the properties "Ignore > requested geometry" and "Respect size limitations", in addition to your > suggstions. I exported and uploaded the ruleset that works for both Telegram > and Signal above. Nice! From 5.21 a hint has been added to suggest that extra properties. (In reply to Ismael Asensio from comment #7) Excellent, I'm glad to hear that. Thank you very much for your support. Best regards |