• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Cursor shown in v2.16.0

Scheduled Pinned Locked Moved Unsolved Troubleshooting
18 Posts 4 Posters 3.1k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    karsten13 @MajorC
    last edited by Aug 28, 2021, 7:58 PM

    @majorc said in Cursor shown in v2.16.0:

    Or do I have to wait for version 17?

    In v2.16.0 we have electron v11, in current develop branch (which will become v2.17.0 in October) we have upgraded to electron v13.

    S 1 Reply Last reply Aug 28, 2021, 8:11 PM Reply Quote 1
    • S Away
      sdetweil @karsten13
      last edited by Aug 28, 2021, 8:11 PM

      @karsten13 @MajorC

      so u can try develop, but there is no guarantee that is is fixed there

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      K 1 Reply Last reply Aug 28, 2021, 10:20 PM Reply Quote 1
      • K Offline
        karsten13 @sdetweil
        last edited by Aug 28, 2021, 10:20 PM

        could fix the black cursor with an entry in custom.css:

        html {
          cursor: none !important;
        }
        

        Can you test if this works on your side? If so we should change this in main.css (will provide a PR then).

        M 1 Reply Last reply Aug 29, 2021, 12:12 PM Reply Quote 0
        • M Offline
          MajorC Project Sponsor @karsten13
          last edited by Aug 29, 2021, 12:12 PM

          @karsten13 said in Cursor shown in v2.16.0:

          Hi Kasten,

          I tried !important in the custom.css and in the main.css. The cursor is still visible.
          Even after after a reboot of the pi, the same, still visible.

          I think I will wait for v2.17.0 in October.

          K 2 Replies Last reply Aug 29, 2021, 2:23 PM Reply Quote 0
          • K Offline
            karsten13 @MajorC
            last edited by Aug 29, 2021, 2:23 PM

            @majorc

            The cursor is still visible.

            :(

            tried yesterday on my pi3:

            • v2.16.0: no cursor
            • v2.17.0-develop: black cursor
            • v2.17.0-develop with css cursor: none !important;: no cursor

            So waiting on v2.17.0 is no solution.

            Another idea is to simulate a cursor movement on electron start.

            1 Reply Last reply Reply Quote 0
            • K Offline
              karsten13 @MajorC
              last edited by karsten13 Aug 29, 2021, 8:50 PM Aug 29, 2021, 8:15 PM

              @majorc

              can you try to patch the file js/electron.js for a test, please add the following at line 74:

              	mainWindow.webContents.on('dom-ready', (event)=> {
              		mainWindow.webContents.sendInputEvent({type: "mouseMove", x: 0, y: 0});
              	});
              

              Does this hide the black cursor?

              (I changed the code here again …)

              M 1 Reply Last reply Aug 30, 2021, 12:42 PM Reply Quote 0
              • M Offline
                MajorC Project Sponsor @karsten13
                last edited by Aug 30, 2021, 12:42 PM

                @karsten13 said in Cursor shown in v2.16.0:

                Like so?

                // Open the DevTools if run with "npm start dev"
                	if (process.argv.includes("dev")) {
                		if (process.env.JEST_WORKER_ID !== undefined) {
                			// if we are running with jest
                			var devtools = new BrowserWindow(electronOptions);
                			mainWindow.webContents.setDevToolsWebContents(devtools.webContents);
                		}
                		mainWindow.webContents.openDevTools();
                	}
                
                	// Set responders for window events.
                	mainWindow.webContents.on('dom-ready', (event)=> {
                		mainWindow.webContents.sendInputEvent({type: "mouseMove", x: 0, y: 0});
                	});
                	
                	mainWindow.on("closed", function () {
                		mainWindow = null;
                	});
                

                That works perfekt! Thank you so much!

                K 1 Reply Last reply Aug 30, 2021, 5:45 PM Reply Quote 0
                • K Offline
                  karsten13 @MajorC
                  last edited by Aug 30, 2021, 5:45 PM

                  @majorc o.k., then I will provide a PR for this in the mm repo

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 2 / 2
                  2 / 2
                  • First post
                    14/18
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy