Closed eGax closed 2 years ago
Also having this issue, on Linux Mint 20.2 Cinnamon
Thanks, I missed this bug in the beginning of march. I'm not seeing this issue right now (but another issue). Clearly something has changed with GTK that has affected the old code.
I installed Linux Mint 20.3 Cinnamon 64 bit on a virtual machine and pip installed key-mon and it worked for me. Unable to reproduce. :-(
Not sure of all the intricacies involved, but it looks like GDK pixmaps are being/have been phased out, and so maybe depending on various library versions the missing object is just not present? https://docs.gtk.org/gtk3/migrating-2to3.html#replace-gdkpixmap-by-cairo-surfaces For what it's worth, this bug only happens to me when I have the 'Highly visible click' feature enabled.
I installed Linux Mint 20.3 Cinnamon 64 bit on a virtual machine and pip installed key-mon and it worked for me. Unable to reproduce. :-(
I'm not using Linux Mint so I have no input on that.
So I did reproduce the bug when turning on the "Highly visible click" feature. If you turn it off it doesn't crash (at least on my machine). As naclomi@ mentioned, it's related to pixmap that is being deprecated. I'm going to have to read about that and figure out how to fix it. I also see some other minor bugs like the menus having underscores instead of the character being bolded.
Had a spare minute and looked into it. Based on this deprecation warning:
https://github.com/ruby-gnome/ruby-gnome/blob/master/gtk3/lib/gtk3/deprecated.rb#L1043
It seems that input_shape_combine_mask
was replaced with input_shape_combine_region
, with the latter now taking a Cairo "Region" rather than a pixmap, which is a purpose-built data structure for interaction masks:
https://pycairo.readthedocs.io/en/latest/reference/region.html
Submitted pull request #97 to fix this. Since the purpose of the code seems to be to set the clickable region to effectively null, I just send input_shape_combine_region
an empty region.
This is fixed, thanks for all the help.
I've installed with:
$ pip install git+https://github.com/scottkirkwood/key-mon
When I run key-mon all is well until the 1st mouse click I make and it freeze key-mon. It no longer registers anything I do:
I can right click and get the menu still and quit it, but the sub-menu names are prefixed with a
_
:Right after it freezes, these line appear if I run it in a terminal window:
I'm running it on Manjaro Linux KDE Plasma.