mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 04:37:30 +02:00
[FancyZones] Secondary mouse buttons click to toggle zones activation (#3989)
* Changed option name in settings, changed behaviour of zones activation by mouse to switch * Removed IsDragEnabled from ZoneWindow
This commit is contained in:
committed by
GitHub
parent
e6408a0c37
commit
8410d7b08e
16
src/modules/fancyzones/lib/SecondaryMouseButtonsHook.h
Normal file
16
src/modules/fancyzones/lib/SecondaryMouseButtonsHook.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
class SecondaryMouseButtonsHook
|
||||
{
|
||||
public:
|
||||
SecondaryMouseButtonsHook(std::function<void()>);
|
||||
void enable();
|
||||
void disable();
|
||||
|
||||
private:
|
||||
static HHOOK hHook;
|
||||
static std::function<void()> callback;
|
||||
static LRESULT CALLBACK SecondaryMouseButtonsProc(int, WPARAM, LPARAM);
|
||||
};
|
||||
Reference in New Issue
Block a user