Skip to content

Commit

Permalink
add potential wacom fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-rgb committed Jul 17, 2017
1 parent cfeb65f commit 5f2fb37
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Milton.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

[Setup]
AppName=Milton
AppVersion=1.4.2
AppVersion=1.4.3
DefaultDirName={pf}\Milton
DefaultGroupName=Milton
;UninstallDisplayIcon={app}\Milton.exe
Compression=lzma2
SolidCompression=yes
OutputBaseFilename=MiltonSetup_1.4.2_x64
OutputBaseFilename=MiltonSetup_1.4.3_x64
;ArchitecturesAllowed=x64
;ArchitecturesInstallIn64BitMode=x64
ChangesAssociations=yes
Expand Down
18 changes: 16 additions & 2 deletions src/easytab.h
Original file line number Diff line number Diff line change
Expand Up @@ -1134,13 +1134,27 @@ EasyTabResult EasyTab_HandleEvent(HWND Window, UINT Message, LPARAM LParam, WPAR
else
{
EasyTab->PenInProximity = EASYTAB_FALSE;

}
result = EASYTAB_OK;
// Alway clear the queue.
EasyTab->WTPacketsGet(EasyTab->Context, EASYTAB_PACKETQUEUE_SIZE+1, NULL);
}


else if (Message == WM_ACTIVATE && EasyTab->Context)
{
// Extract the low word of WParam, which specifies whether the window became active or not
// see https://msdn.microsoft.com/en-us/library/windows/desktop/ms646274.aspx
BOOL Active = (WParam & 0xFFFF) != 0;

// Enable / Disable the context when focus changes (e.g. our window is minimized)
// and move our context to the top with WTOverlap when we gain focus.
// see http://www.wacomeng.com/windows/docs/NotesForTabletAwarePCDevelopers.html#_Toc274818945
EasyTab->WTEnable(EasyTab->Context, Active);
if (Active)
{
EasyTab->WTOverlap(EasyTab->Context, TRUE);
}
}

return result;
}
Expand Down
2 changes: 1 addition & 1 deletion src/milton_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#define MILTON_MAJOR_VERSION 1
#define MILTON_MINOR_VERSION 4
#define MILTON_MICRO_VERSION 2
#define MILTON_MICRO_VERSION 3

#define MILTON_DEBUG 1

Expand Down

0 comments on commit 5f2fb37

Please sign in to comment.