Hello @foxsquirrelmarykayintouch,
The invisible mouse cursor issue in your Fltk application running on Weston can be frustrating. Here are some potential causes and solutions to explore:
1. Fltk Cursor Handling:
By default, Fltk might not explicitly manage the mouse cursor visibility. You might need to enable cursor visibility within your Fltk application.
Solution:
Check the Fltk documentation or search online forums for methods related to managing the mouse cursor. There might be functions like Fl_Cursor(FL_CURSOR_DEFAULT) or similar to set the cursor visibility.
2. Conflicting Window Manager Settings:
Weston might have specific settings related to cursor behavior within applications.
Solution:
Investigate Weston's configuration options. Look for settings that control the mouse cursor behavior within applications or window management. You might find an option to force cursor visibility for all applications.
3. Graphics Driver Issue:
In rare cases, the issue might be related to a bug in the graphics driver for your system.
Solution:
Update your graphics driver to the latest version. Check your system's documentation or manufacturer's website for instructions on updating drivers.
4. Debugging with Print Statements:
If none of the above solutions work, consider adding print statements to your Fltk code to track the cursor behavior.
Solution:
Add print statements within your Fltk event handlers (e.g., when() callbacks) for mouse events like FL_PUSH or FL_MOTION. This can help you see if the events are being triggered despite the cursor being invisible.
Search Online Forums: Look for similar issues reported on Fltk forums or communities.
Minimal Reproducible Example: Create a minimal Fltk application that only uses a screen and button to reproduce the issue. This can help isolate the problem and share it for easier troubleshooting.
Fltk Version Compatibility: Double-check if your Fltk version (1.4) is compatible with your Weston version. Sometimes, outdated versions might have bugs or limitations.
By systematically exploring these possibilities and potentially providing more details about your system and Fltk code structure if needed, you should be able to identify the cause of the invisible cursor issue and get it working correctly in your Fltk application.
I hope the solution may help you.
Best regards,
Dennis Leon