Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
snap layout: get rid of the transparent window
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwenx190 committed Aug 20, 2023
1 parent 58afa6a commit 2202fbf
Show file tree
Hide file tree
Showing 6 changed files with 337 additions and 496 deletions.
4 changes: 2 additions & 2 deletions include/FramelessHelper/Core/framelesshelper_windows.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@
#endif

#ifndef IsMinimized
# define IsMinimized(hwnd) (IsIconic(hwnd) != FALSE)
# define IsMinimized(hwnd) (::IsIconic(hwnd) != FALSE)
#endif

#ifndef IsMaximized
# define IsMaximized(hwnd) (IsZoomed(hwnd) != FALSE)
# define IsMaximized(hwnd) (::IsZoomed(hwnd) != FALSE)
#endif

#ifndef RECT_WIDTH
Expand Down
7 changes: 3 additions & 4 deletions include/FramelessHelper/Core/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ FRAMELESSHELPER_CORE_API void showSystemMenu(
FRAMELESSHELPER_CORE_API void maybeFixupQtInternals(const WId windowId);
[[nodiscard]] FRAMELESSHELPER_CORE_API bool isWindowFrameBorderVisible();
[[nodiscard]] FRAMELESSHELPER_CORE_API bool isFrameBorderColorized();
FRAMELESSHELPER_CORE_API void installSystemMenuHook(
FRAMELESSHELPER_CORE_API void installWindowProcHook(
const WId windowId, const SystemParameters *params);
FRAMELESSHELPER_CORE_API void uninstallSystemMenuHook(const WId windowId);
FRAMELESSHELPER_CORE_API void uninstallWindowProcHook(const WId windowId);
FRAMELESSHELPER_CORE_API void setAeroSnappingEnabled(const WId windowId, const bool enable);
FRAMELESSHELPER_CORE_API void tryToEnableHighestDpiAwarenessLevel();
FRAMELESSHELPER_CORE_API void updateGlobalWin32ControlsTheme(const WId windowId, const bool dark);
Expand All @@ -151,8 +151,7 @@ FRAMELESSHELPER_CORE_API void bringWindowToFront(const WId windowId);
[[nodiscard]] FRAMELESSHELPER_CORE_API QPoint getWindowPlacementOffset(const WId windowId);
[[nodiscard]] FRAMELESSHELPER_CORE_API QRect getWindowRestoreGeometry(const WId windowId);
FRAMELESSHELPER_CORE_API void removeMicaWindow(const WId windowId);
FRAMELESSHELPER_CORE_API void removeSysMenuHook(const WId windowId);
[[nodiscard]] FRAMELESSHELPER_CORE_API quint64 queryMouseButtonState();
[[nodiscard]] FRAMELESSHELPER_CORE_API quint64 queryMouseButtonState(const bool async);
[[nodiscard]] FRAMELESSHELPER_CORE_API bool isValidWindow(const WId windowId, const bool checkVisible, const bool checkTopLevel);
[[nodiscard]] FRAMELESSHELPER_CORE_API bool updateFramebufferTransparency(const WId windowId);
[[nodiscard]] FRAMELESSHELPER_CORE_API QMargins getWindowSystemFrameMargins(const WId windowId);
Expand Down
Loading

0 comments on commit 2202fbf

Please sign in to comment.