I had a little trouble with a convertible and it's touch screen, where it wouldn't disable the touch screen when the pen was near the screen, so my palm always made xournal.scroll away.
Turns out there's an easy fix: the software responsible for touch and pen handling (libinput) does support disabling touch when the pen is near, it just couldn't figure out which 2 devices belong together. A minimal udev rules file and a reboot fixes it, but the IDs depend on the hardware.
Fortunately it has since been fixed upstream, so udev rule hacks are not needed anymore unless you run a distro that runs ancient (~2 years, but it varies) packages, like latest openSUSE Leap.