Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent windows from being dragged past the edge of screen

I would like to be able to stop windows from being dragged past the border of the screen. For example, open a window that is not maximized, click the top bar with the mouse and drag the window wherever you want. Now drag the window to the left/right/top/bottom of your screen and notice that part of the window goes off screen. I would like the window to bump up against the edge of the screen and go no further.

In the same way the cursor can't go over the edge on the left side, I would like to make a barrier so windows can't move over it either.

The main reason for doing this is because I am making a batch program in which I need it to not go off screen. This is annoying and I was hoping that someone here could be of some help.

Sorry if this is an obvious question, I tried a few searches but had no idea what terms to look up.

Thanks for any help in advance!

like image 998
JoezCodes101.weebly.com Avatar asked May 27 '17 16:05

JoezCodes101.weebly.com


People also ask

How do I stop Windows from going to the edge of the screen?

Just hit any one of the arrow keys (Left, Right, Down, Up), move your mouse, and the window should magically “pop” back onto the screen. That's how windows is designed. Hope this works.

How do I grab a window out of my screen bounds on computer?

Hold down the Shift key, then right-click on the appropriate application icon in the Windows taskbar. On the resulting pop-up, select the Move option. Begin pressing the arrow keys on your keyboard to move the invisible window from off-screen to on-screen.


1 Answers

Sorry for the late response (I was researching this), but here is the answer:

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

Also, this would affect all windows, not only that specific program, meaning no easy shortcut for split screen. So no, you cannot do this.

like image 133
Elliot King Avatar answered Oct 12 '22 02:10

Elliot King