Git Product home page Git Product logo

Comments (3)

markus-hi avatar markus-hi commented on May 27, 2024

Same here when using masscode with Windows 10 Pro.

from masscode.

an-d-uu avatar an-d-uu commented on May 27, 2024

I have this issue as well on Windows 10 Pro. As long as the massCode application is on the primary window when you close the application or open and running when you change the number of monitors you are using then the application will stay on the main window. However if it is closed on a window that is not your primary window and then the number of monitors changes then the application doesn't have a way to check that and so it opens on a monitor that is no longer available. I believe this can be handled in a function inside the CreateWindow() function under src > main > index.ts so that when you load the bounds of the application it then checks to see if those bounds are still within the current available displays. If true then it continues creating the window otherwise it will reset the window to be on the primary monitor. I think the call is pretty simple. It just needs to check the app bounds against the election screen.GetAllDisplays() result. I have done something similar in another application and am currently working on applying that solution to this app.

from masscode.

serossi avatar serossi commented on May 27, 2024

this is not a masscode issue in itself, its an windows issue.
the position of non fullscreenapps is stored as coordinates. so if your laptop monitor is for example 1920x1080 your app coordinates on the external monitor will be somwhere at >1921,>1081

what should work is select icon, hold windows key, use arrowkeys left several times to bring it to the main window

permanent toolless workround, if you dont use your laptopscreen while bigscreen is connected rearrange it in display settings. move it to the right.
that way the external monitor will start at 0,0

from masscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.