Commit graph

88 commits

Author SHA1 Message Date
Gabriel Ivăncescu 8a71a4a304 explorer: Set layered style on systray icons before calling into the driver.
Fixes a regression introduced by b5c57b9a62,
which broke the systray integration outside of virtual desktops on some
DEs like XFCE.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-15 20:40:55 +01:00
Gabriel Ivăncescu b5c57b9a62 explorer: Set layered style on systray icons only when it's actually layered.
Fixes a regression introduced by 229b4561d9,
which caused the icons to not be visible initially in the virtual desktop
systray.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-09 18:21:09 +01:00
Gabriel Ivăncescu 5e7a8f4db0 explorer: Don't activate the systray icon when showing it.
Fixes a regression introduced by 62c6646d8f,
because SetParent will unconditionally activate the window, causing newly
added icons to deactivate the foreground window.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
2024-02-09 18:21:06 +01:00
Paul Gofman 5da459f1f2 explorer: Don't pop start menu on "undo minimize all windows" systray command. 2024-02-06 22:54:21 +01:00
Paul Gofman d66fe6206d explorer: Don't pop start menu on "minimize all windows" systray command. 2024-02-06 22:54:21 +01:00
Rémi Bernon 852c4d0a8a explorer: Restore a per-desktop ShowSystray registry setting.
With a global fallback setting under HKCU\Software\Wine\Explorer.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56243
2024-01-29 21:16:06 +01:00
Rémi Bernon 23ee9b2969 explorer: Handle WM_CLOSE for docked icons for when they lose embedding.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56015
2023-12-13 19:13:01 +01:00
Rémi Bernon b088d311a0 explorer: Remove now unnecessary wine_notify_icon support. 2023-12-01 19:09:15 +01:00
Rémi Bernon 48e6bf3cf1 winex11: Use the new SystrayDock driver interface. 2023-12-01 19:09:14 +01:00
Rémi Bernon 229b4561d9 explorer: Use layered windows for the docked systray icons. 2023-12-01 19:09:14 +01:00
Rémi Bernon 62c6646d8f win32u: Introduce new SystrayDock driver entry points. 2023-12-01 19:08:55 +01:00
Rémi Bernon 22bfdbeb48 win32u: Introduce a new NtUserSystemTrayCall message call. 2023-12-01 19:08:54 +01:00
Rémi Bernon 600206be39 explorer: Hide the standalone systray window on close. 2023-12-01 19:08:54 +01:00
Rémi Bernon 27c3cf93e3 explorer: Always set the systray icon tooltip text. 2023-12-01 19:08:54 +01:00
Rémi Bernon 6e85177aa7 explorer: Cache the balloon window position. 2023-11-28 08:54:52 +01:00
Rémi Bernon 118810ad3b explorer: Support standalone systray window mode. 2023-11-28 08:54:52 +01:00
Rémi Bernon b8518d320f explorer: Use an explicit display constant for hidden icons. 2023-11-28 08:54:52 +01:00
Rémi Bernon b135fa4cd0 explorer: Handle balloon timer in the icons window proc. 2023-11-28 08:54:51 +01:00
Rémi Bernon 5312f6242d explorer: Position the balloons relative to the icon windows. 2023-11-28 08:54:51 +01:00
Rémi Bernon a60050abc8 explorer: Use the icon windows for their tooltips. 2023-11-28 08:54:51 +01:00
Rémi Bernon 76d144477c explorer: Display the individual systray icon windows. 2023-11-28 08:54:51 +01:00
Rémi Bernon d2ee32bfe6 explorer: Create individual windows for the systray icons. 2023-11-28 08:54:51 +01:00
Rémi Bernon 243433623a explorer: Split systray add/remove from show/hide_icon. 2023-11-28 08:54:51 +01:00
Rémi Bernon 2e82d57d75 explorer: Remove unnecessary displayed icon array. 2023-11-28 08:54:49 +01:00
Rémi Bernon 5b11157ecf explorer: Use wide string literals. 2023-06-26 16:47:11 +02:00
Rémi Bernon 43fd81b3a5 explorer: Use unprefixed debug macros. 2023-06-26 16:47:11 +02:00
Rémi Bernon 240bdd5772 explorer: Use CRT allocation functions. 2023-06-26 16:47:11 +02:00
Alexandre Julliard 14518662d6 explorer: Use nameless union/structs. 2023-06-16 17:57:11 +02:00
Zhiyi Zhang 8459a5272a explorer: Use a valid taskbar position when the taskbar is hidden.
Some applications use FindWindowA() with class Shell_TrayWnd to find the taskbar window on Windows.
Then GetWindowRect() is called to get the taskbar window rectangle. Finally, the taskbar window
rectangle is subtracted from the primary screen rectangle to calculate the work area. Without a
valid taskbar window position, these applications end up getting an incorrect work area and going
down the wrong path. So use the same position and size as the host system panel for explorer taskbar
when it's hidden.
2022-11-17 10:00:24 +01:00
Eric Pouech e299b5af34 explorer: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 11:20:33 +01:00
Rémi Bernon 2027c8ee1f explorer: Create systray for the null graphics driver.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 20:38:06 +02:00
Zebediah Figura 7eca09d7e0 explorer: Send systray messages with SendNotifyMessage().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50441
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-01 11:02:02 +01:00
Zebediah Figura d91a87cea2 include: Fix the definition of NOTIFYICON_VERSION[_4].
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-01 11:02:00 +01:00
Serge Gautherie 7770e26f2d include: Remove now useless forced _WIN32_IE defines.
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-20 19:38:38 +01:00
Olivier F. R. Dierick 5afd80307e explorer: Don't change Z-order of the taskbar when displaying it.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=40828
Signed-off-by: Olivier F. R. Dierick <o.dierick@piezo-forte.be>
Signed-off-by: Hamish Claxton <hamishclaxton@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-09 10:18:25 -06:00
Michael Stefaniuc 83e481fee2 explorer: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:21:52 +02:00
Alexandre Julliard 082e498163 explorer: Don't forward the system tray to the display driver in desktop mode.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-02 17:20:33 +02:00
Marcus Meissner af5b414000 explorer: Check icon for NULL (Coverity).
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-19 08:16:54 -07:00
Alexandre Julliard b147bd63e3 explorer: Add a helper function to send systray notifications.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 10:57:45 +02:00
Roman Pisl df8ec3a371 explorer: Send WM_CONTEXTMENU on WM_RBUTTONUP and NIN_SELECT on WM_LBUTTONUP.
Signed-off-by: Roman Pisl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 10:37:25 +02:00
Roman Pisl fcad721081 explorer: Implement NIM_SETVERSION.
Signed-off-by: Roman Pisl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 10:37:24 +02:00
Alexandre Julliard 5e1e682a17 explorer: Fix hiding the taskbar when there are no system tray items.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 12:08:23 +09:00
Francois Gouget b81d3f069f explorer: Spelling fix.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-13 11:34:14 +09:00
Alexandre Julliard 69b41aebda explorer: Don't bother with taskbar buttons when the taskbar is not visible.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-10 20:34:03 +09:00
Alexandre Julliard 552555cf8c explorer: Show the application system menu on taskbar right clicks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-08 15:35:38 +09:00
Alexandre Julliard 9da34d943e explorer: Display buttons on the task bar for running applications.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 15:15:25 +09:00
Alexandre Julliard f4568fc640 explorer: Add a generic handler for desktop notifications.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-31 13:55:45 +09:00
Alexandre Julliard 28834b5508 explorer: Add a Wine icon to the Start button.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 21:28:37 +09:00
Alexandre Julliard 3c33d6d32c explorer: Vertically center the system tray icons.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 21:26:34 +09:00
Alexandre Julliard 19a7037d50 explorer: Use the window caption font for the Start button.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-27 21:26:32 +09:00