Prevent windows from dragging over the edge of the screen

I would like the windows to not be dragged off the edge of the screen. For example, open a window that is not maximized, click the top panel with the mouse and drag the window where you want. Now drag the window left / right / top / bottom of the screen and notice that part of the window is disconnected from the screen. I would like the window to run to the edge of the screen and not move further.

In the same way, the cursor cannot move along the edge on the left side, I would like to make a barrier so that windows cannot move above it.

The main reason for this is because I am making a batch program in which I need it to not leave the screen. This is annoying, and I was hoping someone here could help.

Sorry if this is an obvious question, I tried several searches, but had no idea what conditions to look for.

Thanks for any help in advance!

+7
windows screen window
source share
2 answers

Sorry for the late answer (I studied this), but here is the answer:

There is no current way to do this easily. I am sure that you can edit the src windows code and add this property, but the language in which it is made is not in batch mode, and it would be very difficult to edit these files :(

In addition, this will affect all windows, and not just a specific program, which means that there is no simple shortcut for a split screen. So no, you cannot do this.

+4
source share

In Windows 10, you can simply move the window near the edge of the screen and it will be automatically inserted into the screen. You can also use shortcuts for this. [Windows key] + [left arrow] or [right arrow]

+1
source share