Skip to content

Conversation

@djestick
Copy link

Implements Linux-style window moving (Win + Left Click drags window from anywhere).

// @version 1.0
// @author djestick
// @github https://github.com/djestick/linux-style-window-drag-on-windows
// @include explorer.exe
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// 2. ДВИЖЕНИЕ
if (wParam == WM_MOUSEMOVE && g_isDragging) {
bool isWinDown = (GetAsyncKeyState(VK_LWIN) & 0x8000) ||
(GetAsyncKeyState(VK_RWIN) & 0x8000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding an option to customize the hotkey? I think Alt is a more common key for this, for example in AltDrag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants