Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / bugfix: no mouse cursor in windowed mode
- - By ker [de] Date 2013-01-23 13:51
If I start clonk in windowed mode, i don't have a mouse cursor.
here's a fix.
There is a lot of code shared between C4Window::Init and C4Window::ReInit, but there are some differences, like the mouse cursor initialization.
Parent - - By Newton [de] Date 2013-01-23 15:34
Thank you very much! But I wonder why the IF has been put there in the first place. (Related changeset)
Günther, could you review this patch and push it?
Parent - - By Günther [de] Date 2013-01-23 21:28
It's intentional that the editor doesn't hide the system mouse cursor. windowKind == W_Fullscreen tests for "is this the player mode window (C4FullScreen)". We could add logic to hide the system cursor in editor viewports when we're drawing our own cursor, but simply hiding the system cursor for everything isn't the right thing to do.
Reply
Parent - - By ker [de] Date 2013-01-23 22:06
if I delete all config files, oc starts in window mode without system or oc cursor. I don't know if that happens for everyone. But if it does, many first time players will get annoyed at having to use the keyboard to fiddle through to finding the fullscreen setting (and they wouldn't be aware that that returns their mouse cursor).
Therefore something has to be done.
Parent - By Günther [de] Date 2013-01-24 19:44
Right. Hiding the system cursor even more wouldn't fix the hidden mouse cursor, though. I suspect you changed your configuration from using the native resolution and fullscreen, which didn't make the gtk window actually fullscreen due to a bug, to something else, which makes the mouse cursor appear. I made the same mistake when I last noticed the missing mouse cursor and thought the bug had vanished.

http://git.openclonk.org/openclonk.git/commit/9d34c4e30d341d04b1013745153c9e11e378af59
http://git.openclonk.org/openclonk.git/commit/1e67a6fb2448975ef730e6d9a2e7f79154535108
Reply
Up Topic Development / Developer's Corner / bugfix: no mouse cursor in windowed mode

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill