I experienced that adding the "export GDK_CORE_DEVICE_EVENTS=1" caused the plank dock to crash when moving icons. (Using Cupertino panel layout)
There are at least two references for this undesired behavior:
- Plank crash Fedora 36 KDE when trying to drag any dock icon
- Plank crashes when trying to drag icons/ reorder icons
A solution for this is to fix xorg-server with a patch, which is referenced here:
- mi: fix rounding issues around zero in miPointerSetPosition
- mi: fix rounding issues around zero in miPointerSetPosition (merge request)
I tried compiling xorg-server with this patch and it solves the issue. With that, exporting GDK_CORE_DEVICE_EVENTS was not necessary.
If someone is interested, I made a sh script which uses the source file of the installed xorg-server, patches it and creates a new deb file, which it installs when finished. This is done in a chroot environment preventing cluttering of the file system.
The script can be found here:
Although the commit has been backported to the xorg-server 21.1 branch, I have not found it in the branch which Ubuntu provides (Which is at the moment also using 21.1).