Windows: Wacom Pen is not recognized on the first application start, work on second
I'm a Developer of Xournal++ https://github.com/xournalpp/xournalpp
On Linux Pen input is working fine, on Windows and macOS there are issues. I create one Ticket for every issue and link them together. I have a developer machine - so I am able to help developing, but I probably need some advices from GTK developer.
Steps to reproduce
Install Xournal++ Release 1.0.5 from above links, the GTK Demo also have issues, but I debugged everything on Xournal++.
I have tested this on a Wacom Tablet. HP 2730p with Windows 10.
- Reboot Windows
- Start Xournal++, and draw with the Pen. Then Pen is recognized as Mouse, pressure sensitivity is not working
- Quit Xournal++
- Start again, and the Pen is recognized as pen, an all is working, until Windows is rebooted.
Testcase 2:
- Reboot Windows
- Start Xournal++, and keep the Pen away from screen
- Quit Xournal++
- Start again, the Pen is NOT working
- Quit Xournal++
- Start again, now it's working.
Current behavior
The pen is only detected after it touches the GTK Application, and the Application needs a restart after. Then it works until Windows is rebooted.
Expected outcome
The pen should work after the first contact.
Version information
GTK 3.24.2-1 (Msys 64bit) Windows 10 Pro 18.09
Technical:
gdk_device_get_source(device) reports 0 on the first pen contact, 1 after the application restart.