openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

X11 Window / Event support on RPi #83

Closed bakercp closed 11 years ago

bakercp commented 11 years ago

So, this was expected, but is still a funny issue.

If a compiled oF app is run from a terminal within X on the RPI, the X cursor shows up and our custom ofAppEGLWindow cursor shows up. This is of course because we are using native window on top of the x system. Anyway, it is an odd behavior. Perhaps there is a smart way to have Raspberry Pi use an X11 window if it is in X and use a native window if it is launched from the terminal? Normally, it is not preferred to launch from the X system, because the X system takes valuable system resources. Anyway, this is something to think about. Not a "bug" per se, just the consequences of our choices :)

arturoc commented 11 years ago

yes my idea is to have a switch where you can select an x11 or not x11 window, in other systems it should use kms or wayland to open a window when there's no x11, and the x11 has no simulated cursor

bakercp commented 11 years ago

@arturoc I made some progress on this -- 9ecd90be7a9c31e96b11f8b2b7ca9eb568b2baec a comment is on that commit.

bakercp commented 11 years ago

This is not possible until x11 has been updated for acceleration. Native windows only for now on the RPI. Closing this issue for now.