Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I specify on which monitor the console window is opened?

I've currently connected two monitors via a dock to my notebook. When I'm running my console application, the console window always pops up on the first monitor. How can I change that it's automatically opened on another monitor, e.g. on monitor 3? Maybe there is a property I need to modify?

It's very annoying to always drag the console window onto the monitor on which my IDE is opened.

like image 255
Pete Hilde Avatar asked Jul 27 '17 10:07

Pete Hilde


People also ask

How do I move a game window to another monitor?

Connect the second monitor to your PC, and launch the game you wish to play. Next, navigate to your desktop screen, and hit Windows and P keys together. A few options will display, select the PC screen only option. Finally, your primary display will go blank, but the game will continue to run on the second monitor.

How do I stop programs from opening on my second monitor?

Click Start, point to Programs, click Control Panel, and then double- click Display. Click the Settings tab. In the Display box, click the secondary display adapter. Click the "Extend my Windows desktop onto this monitor" check box to clear it, and then click OK.


1 Answers

Console applications (unlike GUI applications) don't create their own window; that's done by Windows, and in the case when you're running in an already created console, then you kinda inherit, e.g., cmd's window.

What you can do, though, is to find your window and move it to a different monitor.

Another option is to change the window manager settings for that application in the properties of the console window under Layout. Especially the check box »Let system position window«. To do so, first move the window where you'd like it to appear, then open the properties, go to the Layout tab, and just click »OK«.

like image 106
Joey Avatar answered Oct 02 '22 00:10

Joey