Commit 7044592
committed
Properly handle automatically hiding taskbar on multi-monitor setup
When taskbar is hidden its window is moved off the screen (except for
few pixels at border). It may happen that the taskbar window actually
spans to another monitor (though still not visible).
MonitorFromWindow API may thus return different monitor handle than the
one visible taskbar is on.
We will use GetTaskbarPosition function that correctly identifies taskbar's
monitor by checking rectangle of visible taskbar.
Fixes #9081 parent 04770c4 commit 7044592
File tree
2 files changed
+5
-2
lines changed- Src/StartMenu/StartMenuDLL
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7652 | 7652 | | |
7653 | 7653 | | |
7654 | 7654 | | |
| 7655 | + | |
| 7656 | + | |
| 7657 | + | |
7655 | 7658 | | |
7656 | 7659 | | |
7657 | 7660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
| 621 | + | |
620 | 622 | | |
621 | 623 | | |
622 | 624 | | |
623 | | - | |
624 | 625 | | |
625 | | - | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| |||
0 commit comments