failure to hide cursor while switching to fullscreen on OSX

Bug #784153 reported by Cole Ingraham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
Fix Released
Medium
rdb

Bug Description

Currently with the following code:

  WindowProperties wp = window->get_graphics_window()->get_properties();
  wp.set_fullscreen(true);
  wp.set_size(1280,720);
  wp.set_cursor_hidden(true);
  wp.set_mouse_mode (WindowProperties::M_relative);
  window->get_graphics_window()->request_properties(wp);

everything works correctly except for hiding the cursor. This is v1.7.2 on OSX 10.6.

Revision history for this message
rdb (rdb) wrote :

Just checked in a fix. In the meantime, the workaround you can use is to first request a WindowProperties object switching to fullscreen, and afterward again to hide the cursor.

For the record, your method of updating the window properties is incorrect. Instead of getting the existing WindowProperties object, modifying and pushing it back, you have to create a new WindowProperties object containing only the properties you want to change.

summary: - OSX set_cursor_hidden(true) has no effect (c++)
+ failure to hide cursor while switching to fullscreen on OSX
Changed in panda3d:
assignee: nobody → rdb (rdb)
importance: Undecided → Medium
milestone: none → 1.8.1
status: New → Fix Committed
rdb (rdb)
Changed in panda3d:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.