Skip to content

Commit

Permalink
Supermium will now work with WM_TOUCH messages on Windows 7 again.
Browse files Browse the repository at this point in the history
  • Loading branch information
win32ss committed Jan 6, 2024
1 parent 697535a commit c11cba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/base/ui_base_features.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"

#if BUILDFLAG(IS_WIN)
#include "base/win/windows_version.h"
#endif

#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif
Expand Down Expand Up @@ -256,7 +260,8 @@ BASE_FEATURE(kPointerEventsForTouch,
BASE_FEATURE(kTSFImeSupport, "TSFImeSupport", base::FEATURE_ENABLED_BY_DEFAULT);

bool IsUsingWMPointerForTouch() {
return base::FeatureList::IsEnabled(kPointerEventsForTouch);
return base::win::GetVersion() >= base::win::Version::WIN8 &&
base::FeatureList::IsEnabled(kPointerEventsForTouch);
}

#endif // BUILDFLAG(IS_WIN)
Expand Down

0 comments on commit c11cba1

Please sign in to comment.