mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
FancyZones: improve windows and apps filtering (#673)
Unifies the way windows are considered "interesting" by FancyZone. Berfore the change WinKey + arrows would use different method than dragging. This PR makes both use the WinKey + arrows method. Cleans up FancyZones Settings.cpp by removing m_configStrings variable. Contrary to its name it was used to create color picker control. Adds a multiline option to the text input to settings. Uses this to provide the user with a way to exclude certain apps from snapping to zones.
This commit is contained in:
committed by
GitHub
parent
4df1d2093f
commit
03438f9192
@@ -11,6 +11,12 @@ std::optional<RECT> get_window_pos(HWND hwnd);
|
||||
std::optional<POINT> get_mouse_pos();
|
||||
// Gets active window, filtering out all "non standard" windows like the taskbar, etc.
|
||||
HWND get_filtered_active_window();
|
||||
// Gets window ancestor (usualy the window we want to do stuff with), filtering out all "non standard" windows like the taskbar, etc. and provide the app process path
|
||||
struct WindowAndProcPath {
|
||||
HWND hwnd = nullptr;
|
||||
std::wstring process_path;
|
||||
};
|
||||
WindowAndProcPath get_filtered_base_window_and_path(HWND window);
|
||||
|
||||
// Calculate sizes
|
||||
int width(const RECT& rect);
|
||||
|
||||
Reference in New Issue
Block a user