Commit Graph

588 Commits

Author SHA1 Message Date
Bartosz Sosnowski
5f8c4ea143
Improve window filter to include start menu and Cortana search box. (#474)
Also moves GetProcessPath* functions to common, renaming both to
get_process_path.
2019-10-07 11:12:44 +02:00
Enrico Giordani
298a8787d5 drop privileges if running elevated
make sure the Settings process is not running elevated otherwise the WebView control will fail to start
2019-10-04 11:50:27 +02:00
Enrico Giordani
25510b23e1 remove mutex
the mutex is not necessary since the global window handler is set after the WM_CREATE event is fired.
2019-10-04 11:50:27 +02:00
Enrico Giordani
1fc351b088 code refactoring
fix casting warning
disable automatic window content refresh on resize, this is required by the upcoming support for WebView2
2019-10-04 11:50:27 +02:00
Enrico Giordani
7db627df1b global variable name 2019-10-04 11:50:27 +02:00
Enrico Giordani
c00733ea11 error handling and error checking 2019-10-04 11:50:27 +02:00
Enrico Giordani
7a94ee04c8 global variables name 2019-10-04 11:50:27 +02:00
Enrico Giordani
799ac545a2 supress warning C26451 arithmetic overflow 2019-10-04 11:50:27 +02:00
Enrico Giordani
11396015fb WinMain annotation and argument name 2019-10-04 11:50:27 +02:00
Enrico Giordani
6839b4773a NULL -> nullptr 2019-10-04 11:50:27 +02:00
Enrico Giordani
a2b0671d6d rename variables and functions
supress warning C26444
2019-10-04 11:50:27 +02:00
Enrico Giordani
99e5680f33 code refactoring for local stream uri 2019-10-04 11:50:27 +02:00
Enrico Giordani
f93bcd875a remove unused WebViewControlProcessOptions 2019-10-04 11:50:27 +02:00
Enrico Giordani
576f75d230 rename global variables 2019-10-04 11:50:27 +02:00
Enrico Giordani
f28e9bdb96 remove namespace prefix
since it is declared to be used
2019-10-04 11:50:27 +02:00
Enrico Giordani
7c43e814e9 remove unused libs 2019-10-04 11:50:27 +02:00
Bartosz Sosnowski
d96db2a408 Add dropdown settings UI element 2019-10-04 09:26:40 +02:00
reviewher
f1c2a66023 Cleanup LICENSE 2019-10-04 02:04:48 +02:00
Bartosz Sosnowski
bf82e04ddb Add radio button group and add theme select for ShortcutGuide 2019-10-03 10:12:36 +02:00
Bartosz Sosnowski
64f606daaa
Add a hotkey settings control and use it in FancyZones (#450)
Add a hotkey settings control and use it in FancyZones
2019-10-02 17:18:55 +02:00
Tomer Cohen
de08485db8 FancyZone documentation typo fixes
Miscellanious→Miscellaneous
maintining→maintaining
2019-09-30 19:54:05 +02:00
cedi
faf1fae873 Modifying the startup behaviour of the FancyZones Layout Editor
Add setting to allow to choose if the FZ editor opens in the screen where mouse cursor is or where the active windows is.
2019-09-28 16:29:29 +02:00
ebbyd3
a8f0d3298f Fixed some minor code styling issues. Removed some minor redundant calculations for a small performance enhancement with zone detection. 2019-09-26 23:23:09 +02:00
ebbyd3
af67f7782c Added more in-depth check for zone determination when dragging around
the screen. Previously, it would iterate through the zones in the order
they were added and find the first one that fit the description. While
this works in most cases, if a user wants to have overlapping zones, it
is better to iterate through all of them and find the zone that the user
expects. There are cases where a zone is completely inaccessible on drag
because of the current code. To resolve this, the zone search will look
for the smallest zone possible. The reason I chose this solution is
because this guarantees that zones are at least reachable since if a
zone was bigger than another zone, then there must be a part of it
that is exposed, therefore reachable itself. Note: this solution is for
the scenario between two zones. More than that is not guaranteed. But I
feel like this covers enough scenarios to warrant its addition.

Example:
  ----------------
  - Zone1        -
  -  ----------  -
  -  - Zone2  -  -
  -  -        -  -
  -  ----------  -
  ----------------

Previously, zone2 was inaccessible since it would iterate through 1 then
2. But 1 would always be seen first when dragging a window. With this
fix it zone2 will be accessible.
2019-09-26 23:23:09 +02:00
Bartosz Sosnowski
50dae8a37b Make detection of windows creation more robust 2019-09-26 08:54:00 +02:00
Bartosz Sosnowski
0b86941a3b Make FancyZone distinguish different modern apps. 2019-09-26 08:54:00 +02:00
José I. Escudero
5d75feebdc Update README.md
Fix typo
2019-09-26 08:26:29 +02:00
Mike Harsh
e8327eed36
Merge pull request #350 from mkevenaar/feature/GH-349
Add documentation about Chocolatey installation
2019-09-19 18:57:33 -07:00
Bartosz Sosnowski
b85f722e09 When moving window to a zone, ensure it does not remain in maximized state. 2019-09-18 10:41:51 +02:00
Bartosz Sosnowski
1a400bd7fd Filter windows moved by keyboard in FancyZones 2019-09-18 10:41:16 +02:00
Bartosz Sosnowski
487c485911 Move window filter to separate function, filter more windows. 2019-09-18 10:41:16 +02:00
Bret
a54e4299aa
Merge pull request #391 from microsoft/user/bretan/fz-multimon
Fix for #195 - Fancy Zones new editor needs to support multiple monitors
Fix for #292 - Zone Editor opens behind PowerToys Window
2019-09-17 17:58:53 -07:00
Bret Anderson
209ec55912 PR feedback 2019-09-17 17:53:43 -07:00
Enrico Giordani
390ad0561f remove previous version upon upgrade
fix link to documentation
2019-09-17 09:53:05 +02:00
Bret Anderson
2c3c4e7519 Need to adjust x/y by scaled diff between monitor and work area rect 2019-09-16 12:48:55 -07:00
Bret Anderson
1078101631 Fix for #292 (Zone Editor opens behind PowerToys Window) 2019-09-15 13:48:56 -07:00
Bret Anderson
c0cdf7aaa6 Everything is working. 2019-09-15 13:34:00 -07:00
Gary Hunt
7eedda30db Fix typos in src/README.md (#364) 2019-09-14 12:53:54 +02:00
William Kent
54b883397c Use PTLicenseDlg in lieu of the standard license dialog 2019-09-13 18:07:15 +02:00
William Kent
f9c3ab3921 Use friendlier font in License.rtf file 2019-09-13 18:07:15 +02:00
Enrico Giordani
8221f5e641
activate zones for windows with custom titlebar
fixes https://github.com/microsoft/PowerToys/issues/209
2019-09-11 21:12:39 +02:00
Enrico Giordani
1430332b98
default 'flashZones' to false 2019-09-11 21:11:55 +02:00
Maurice Kevenaar
6cf3486387 Add documentation about Chocolatey installation (#349) 2019-09-11 12:51:03 +02:00
Bartosz Sosnowski
7aeac4996b
Don't show the tasklist arrows when taskbar is autohide (#340)
Ref: https://github.com/microsoft/PowerToys/issues/291
2019-09-11 12:38:58 +02:00
Bartosz Sosnowski
1737128b1d
Make Alt-F4 always close the settings window (#334)
Fixes: https://github.com/microsoft/PowerToys/issues/289
2019-09-11 12:38:40 +02:00
Bartosz Sosnowski
8ac6db8b5a
Fix cppcheck reported issues (#333)
Fixes: https://github.com/microsoft/PowerToys/issues/266
2019-09-11 12:38:20 +02:00
William Kent
12cd7bb49f Advertise shortcuts
* Change shortcut to advertised

Note that I had to remove the ability to not install a
Start Menu shortcut, as advertised shortcuts must always
be installed.

Also note that I had to change the "Core" feature to always
be installed (disabling Install-on-Demand) as having that
turned on broke the Scheduled Task installer.

* Disable ARPNOMODIFY
2019-09-09 18:19:17 +02:00
casungo
38029efe50
Added Hi-res logo (4k PNG) 2019-09-09 16:58:37 +02:00
Enrico Giordani
21bf5b11d7
add build status to readme 2019-09-09 15:40:47 +02:00
Enrico Giordani
bc0495fe79
Update CI pipeline
update Visual Studio version to 16
move CI pipeline to .pipelines folder
2019-09-09 15:13:21 +02:00