linuxmint / muffin

The window management library for the Cinnamon desktop (libmuffin) and its sample WM binary (muffin)
GNU General Public License v2.0
196 stars 93 forks source link

Muffin does not respect input_shape_combine_region #555

Open LiraNuna opened 4 years ago

LiraNuna commented 4 years ago
 * muffin 4.4.2
 * Linux Mint 19.3 Cinnamon
 * GeForce GTX 1080, NVIDIA driver 440.64
 * x86_64

Issue It seems that Muffin does not respect input_shape_combine_region call that passes through events to the window behind the application.

Steps to reproduce This script creates a new application window that uses input_shape_combine_region as an example: https://www.reddit.com/r/GTK/comments/fo4jw5/how_to_implement_ignore_the_mouse_events_of_a_gtk/flos2w1/

This script correctly works on Xubuntu (as an example) but will "swallow" events on Mint/Cinnamon.

Expected behaviour Events should pass through to the window behind the windows with input_shape_combine_region

mtwebster commented 4 years ago

I can't reproduce this on either cinnamon/muffin 4.4 current release or git master.

https://www.dropbox.com/s/9kw54ct4ydmm70l/Screencast%202020-04-26%2021%3A56%3A54.mp4?dl=0

To rule out any settings issue have you tried creating a new user and testing this there?

LiraNuna commented 4 years ago

Just tried it using a brand new user and I can still reproduce this. What kind of information do you suggest I collect to attempt to narrow down the difference?

I booted into a live usb of linuxmint-19.3-cinnamon-64bit.iso with sha256 of 7a9e54212433c8547edfd789ac933c91a9bde1a61196fa7977c5357a2c40292d and ran the following directly on terminal without doing anything else:

sudo apt-get update 
sudo apt-get install python3-venv python3-dev build-essential libcairo2-dev libgirepository1.0-dev 
python3.6 -m venv venv
source venv/bin/activate
pip install -U wheel pip
pip install PyGObject
wget https://gist.githubusercontent.com/LiraNuna/5fd22c218af27ffac4ead0b94c8610d1/raw/eb6e5e2bf1a3ad99679a0bd77573fd6b631015ff/script.py
python script.py

Please try that and tell me if you can reproduce it then? I wonder what is different between our set ups.

LiraNuna commented 4 months ago

Hello, it's been over 4 years since I have reported this issue and gave a reproduction case. Is there anything I can do to help this problem get fixed? it is still an issue with Mint 21.3 / Cinnamon.