hide the cursor in fullscreen master
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 1 Sep 2019 14:41:05 +0000 (17:41 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 1 Sep 2019 14:41:05 +0000 (17:41 +0300)
src/main.c

index ad6c66e..b5e1f5e 100644 (file)
@@ -48,6 +48,7 @@ int main(int argc, char **argv)
 
        if(fullscr) {
                glutFullScreen();
+               glutSetCursor(GLUT_CURSOR_NONE);
        }
 
        glutDisplayFunc(display);
@@ -218,8 +219,10 @@ void keyb(unsigned char key, int x, int y)
                        saved_width = win_width;
                        saved_height = win_height;
                        glutFullScreen();
+                       glutSetCursor(GLUT_CURSOR_NONE);
                } else {
                        glutReshapeWindow(saved_width, saved_height);
+                       glutSetCursor(GLUT_CURSOR_INHERIT);
                }
                break;
        }