Byzantum - Window manager wrong behaviors
What problem did you encounter
What is the actual behaviour?
I don't know If I should put this in Phosh or not
I'm currently adapting one of my GTK2 software to GTK3+libhandy in the Librem 5 VM and I found 2 misbehaviors of the Window Manager :
- The first one is a minor problem : a useless spamming of the event GDK_CONFIGURE, when I'm only moving the cursor on phosh GUI
It's a minor problem, but it could probably intensively use the CPU if many open softwares are getting spam by this event until focus is given
It happens only after changing the Scale in the Display settings
The spamming stop only if I put the focus on my window again
- The second one is a more critical problem : the scale change from 200% to 100% doesn't trigger the problem, but from 100% to 200% triggers it
The configure event (GDK_CONFIGURE) is not updating correctly the width information
My software is rendering a view depending on the dimensions of the window, but it can't do it properly because of that misbehavior from the Window Manager
How to reproduce
- Launching a software
- Changing the scale from 100% to 200%
- Displaying the values given in the event->configure structure
Here is a video showing the entire process: The left panel is the standard output of my software printing some values from the event->configure structure
I added a count of event to see the spam for the first problem
What hardware are you running on?
-
amd64 qemu image (Librem5 VM)
Relevant OS information
Which kernel are you using?
Linux pureos 5.10.0-4-amd64 #1 (closed) SMP Debian 5.10.19-1 (2021-03-02) x86_64 GNU/Linux
Which OS are you using?
ID=pureos
NAME=PureOS
PRETTY_NAME=PureOS
VERSION_ID=10.0
VERSION_CODENAME=byzantium
HOME_URL="https://pureos.net/"
SUPPORT_URL="https://puri.sm/faq/#faq-WherecanIfindoutmoreaboutPureOS"
BUG_REPORT_URL="https://tracker.pureos.net/"
LOGO=pureos-logo-icon
Any other information that may be helpful?
I did 'apt update && apt upgrade' today