Bug 474627 - Changing window height and width at once via script on wayland does not work
Summary: Changing window height and width at once via script on wayland does not work
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: scripting (other bugs)
Version First Reported In: git-stable-Plasma/5.27
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-17 17:54 UTC by Petr Bartos
Modified: 2023-09-19 18:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Bartos 2023-09-17 17:54:13 UTC
Hi,
i am trying to write script (using javascript) which changes size of some windows. When script is executed, only one dimension of window can be changed at once. So when doing this:

client.frameGeometry.width = 500;
client.frameGeometry.height = 500;

only window height is changed. When these lines are swapped, only width is changed. This works without problem on X11. However I've found workaround which works on both:

client.frameGeometry.width = 500;
client.geometryChanged.connect(() => {
  client.frameGeometry.height = 500;
});