Summary: | clientArea always returns area before resolutionchange in screenResized handler | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Fabian Homborg <FHomborg> |
Component: | scripting | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | minor | CC: | xaver.hugl |
Priority: | NOR | ||
Version: | 4.11.5 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Fabian Homborg
2014-01-17 20:28:25 UTC
Ran into that, used a timer: http://kde-look.org/content/show.php?content=162304 The problem is that kwin has an internal delay before acting (maaaany screen resizes can happen on a single change - depending on how stupid the change is caused), but the signal is directly bound to QDesktopWidget::resized(int) I suggest to act later in scripts as well, either the way done by the linked script or by adding a signal hopper in the wrapper. The latter would prevent scripts to really react on every single resize action (no idea whether that's required - just mentioning) After some googling, I've found that either there is a Qt bug (QTimer isn't accesible from my code), or I need to refactor my code into one file so I can drop qml (which I only need for Qt.include). Either way, I can't see any use for the current behavior regarding screenResized, so it should be changed. Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |