Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified AltSnap.ini
Binary file not shown.
Binary file modified Lang/_en_US baseline.txt
Binary file not shown.
2 changes: 2 additions & 0 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,7 @@ INT_PTR CALLBACK AdvancedPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
{ IDC_MULTIPLEINSTANCES,T_BOL, 0, TEXT("Advanced"), "MultipleInstances",V 0 },
{ IDC_FULLSCREEN, T_BOL, 0, TEXT("Advanced"), "FullScreen", V 1 },
{ IDC_BLMAXIMIZED, T_BOL, 0, TEXT("Advanced"), "BLMaximized", V 0 },
{ IDC_BLMAXIMIZEDRESIZE,T_BOL, 0, TEXT("Advanced"), "BLMaximizedResize", V 0 },
{ IDC_FANCYZONE, T_BOL, 0, TEXT("Zones"), "FancyZone", V 0 },
{ IDC_NORESTORE, T_BMK, 2, TEXT("General"), "SmartAero", V 0 }, // bit 2
{ IDC_MAXWITHLCLICK, T_BMK, 0, TEXT("General"), "MMMaximize", V 1 }, // bit 0
Expand Down Expand Up @@ -2000,6 +2001,7 @@ INT_PTR CALLBACK AdvancedPageDialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPAR
{ IDC_RESTOREONCLICK, L10NIDX(advanced_restoreonclick ) },
{ IDC_FULLSCREEN, L10NIDX(advanced_fullscreen ) },
{ IDC_BLMAXIMIZED, L10NIDX(advanced_blmaximized ) },
{ IDC_BLMAXIMIZEDRESIZE,L10NIDX(advanced_blmaximizedresize ) },
{ IDC_FANCYZONE, L10NIDX(advanced_fancyzone ) },
{ IDC_NORESTORE, L10NIDX(advanced_norestore ) },
{ IDC_TOPMOSTINDICATOR, L10NIDX(advanced_topmostindicator ) },
Expand Down
4 changes: 3 additions & 1 deletion hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ static struct config {
UCHAR ResizeAll;
UCHAR FullScreen;
UCHAR BLMaximized;
UCHAR BLMaximizedResize;
UCHAR AutoRemaximize;
UCHAR SnapThreshold;
UCHAR AeroThreshold;
Expand Down Expand Up @@ -279,6 +280,7 @@ static const struct OptionListItem Advanced_uchars[] = {
{ "ResizeAll", 1 },
{ "FullScreen", 1 },
{ "BLMaximized", 0 },
{ "BLMaximizedResize", 0 },
{ "AutoRemaximize", 0 },
{ "SnapThreshold", 20 },
{ "AeroThreshold", 5 },
Expand Down Expand Up @@ -4479,7 +4481,7 @@ static int init_movement_and_actions(POINT pt, HWND hwnd, enum action action, in
state.origin.dpi = GetDpiForWindow(state.hwnd);
state.origin.width = wndpl.rcNormalPosition.right-wndpl.rcNormalPosition.left;
state.origin.height = wndpl.rcNormalPosition.bottom-wndpl.rcNormalPosition.top;
state.resizable = IsResizable(state.hwnd);
state.resizable = IsResizable(state.hwnd) && !(conf.BLMaximizedResize && state.origin.maximized);

GetMinMaxInfo(state.hwnd, &state.mmi.Min, &state.mmi.Max); // for CLAMPH/W functions

Expand Down
3 changes: 3 additions & 0 deletions languages.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ struct strings {
TCHAR *advanced_restoreonclick;
TCHAR *advanced_fullscreen;
TCHAR *advanced_blmaximized;
TCHAR *advanced_blmaximizedresize;
TCHAR *advanced_fancyzone;
TCHAR *advanced_norestore;
TCHAR *advanced_topmostindicator;
Expand Down Expand Up @@ -482,6 +483,7 @@ static const char* l10n_inimapping[] = {
"AdvancedRestoreOnClick",
"AdvancedFullScreen",
"AdvancedBLMaximized",
"AdvancedBLMaximizedResize",
"AdvancedFancyZone",
"AdvancedNoRestore",
"AdvancedTopmostIndicator",
Expand Down Expand Up @@ -723,6 +725,7 @@ static const struct strings en_US = {
/* restoreonclick */ TEXT("Rest&ore window with single click like original AltDrag"),
/* fullscreen */ TEXT("Enable on &full screen windows"),
/* blmaximized */ TEXT("&Disable AltSnap on Maximized windows"),
/* blmaximizedresize*/ TEXT("&Disable AltSnap resizing on Maximized windows"),
/* fancyzone */ TEXT("Restore Fancy&Zones snapped windows"),
/* norestore */ TEXT("Never restore AltSna&pped windows"),
/* topmostindicator */ TEXT("Show an i&ndicator on always on top windows"),
Expand Down
1 change: 1 addition & 0 deletions resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
#define IDC_LONGCLICKMOVE 2077
#define IDC_BLMAXIMIZED 2078
#define IDC_PIERCINGCLICK 2079
#define IDC_BLMAXIMIZEDRESIZE 2080

#define IDC_OUTTB 2083
#define IDC_UNIKEYHOLDMENU 2084
Expand Down
7 changes: 4 additions & 3 deletions window.rc
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,10 @@ BEGIN
CONTROL "", IDC_RESTOREONCLICK, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,163,203,8
CONTROL "", IDC_FULLSCREEN, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,173,203,8
CONTROL "", IDC_BLMAXIMIZED, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,183,203,8
CONTROL "", IDC_FANCYZONE, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,193,203,8
CONTROL "", IDC_NORESTORE, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,203,203,8
CONTROL "", IDC_TOPMOSTINDICATOR, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,213,203,8
CONTROL "", IDC_BLMAXIMIZEDRESIZE,"Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,193,203,8
CONTROL "", IDC_FANCYZONE, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,203,203,8
CONTROL "", IDC_NORESTORE, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,213,203,8
CONTROL "", IDC_TOPMOSTINDICATOR, "Button",BS_AUTOCHECKBOX|WS_TABSTOP, 10,223,203,8
END

/////////////////////////////////////////////////////////////////////////////
Expand Down