clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
+10
-10
@@ -45,16 +45,16 @@ struct DWM_WINDOW {
|
||||
NTL_WINDOW_ID Id;
|
||||
DWM_CLIENT* Owner;
|
||||
DISPLAY_RECT Bounds;
|
||||
uint32_t Visible;
|
||||
bool Visible;
|
||||
uint32_t PointerMode;
|
||||
uint32_t Destroying;
|
||||
bool Destroying;
|
||||
DWM_SURFACE_BINDING* Surface;
|
||||
DWM_WINDOW* Lower;
|
||||
DWM_WINDOW* Higher;
|
||||
};
|
||||
|
||||
typedef struct DWM_STATE {
|
||||
volatile uint32_t Running;
|
||||
volatile bool Running;
|
||||
SYS_HANDLE Mutex;
|
||||
SYS_HANDLE DirtyEvent;
|
||||
SYS_HANDLE DisplayManager;
|
||||
@@ -74,11 +74,11 @@ typedef struct DWM_STATE {
|
||||
DWM_WINDOW* PointerWindow;
|
||||
DWM_WINDOW* Captured;
|
||||
DISPLAY_RECT Dirty;
|
||||
uint32_t DirtyValid;
|
||||
bool DirtyValid;
|
||||
int32_t PointerX;
|
||||
int32_t PointerY;
|
||||
uint32_t PointerButtons;
|
||||
uint32_t CursorVisible;
|
||||
bool CursorVisible;
|
||||
} DWM_STATE;
|
||||
|
||||
typedef struct DWM_CLIENT_THREAD_CONTEXT {
|
||||
@@ -236,7 +236,7 @@ static KSTATUS DwmSetSessionAuthority(uint32_t operation, bool enabled) {
|
||||
request.Version = NTL_SESSION_DWM_PROTOCOL_VERSION;
|
||||
request.Operation = operation;
|
||||
request.Flags = NTL_SESSION_DWM_FLAG_NONE;
|
||||
request.Enabled = enabled ? 1u : 0u;
|
||||
request.Enabled = enabled;
|
||||
|
||||
NTL_SESSION_DWM_REPLY reply;
|
||||
memset(&reply, 0, sizeof(reply));
|
||||
@@ -664,8 +664,8 @@ static void DwmFillWindowReplyLocked(const DWM_WINDOW* window, NTL_DESKTOP_REPLY
|
||||
reply->WindowId = window->Id;
|
||||
reply->Bounds = window->Bounds;
|
||||
reply->Visible = window->Visible;
|
||||
reply->Focused = gDwm.Focused == window ? 1u : 0u;
|
||||
reply->Captured = gDwm.Captured == window ? 1u : 0u;
|
||||
reply->Focused = gDwm.Focused == window;
|
||||
reply->Captured = gDwm.Captured == window;
|
||||
reply->HasSurface = window->Surface ? 1u : 0u;
|
||||
if (window->Surface) {
|
||||
reply->SurfaceWidth = window->Surface->Desc.Width;
|
||||
@@ -821,9 +821,9 @@ static KSTATUS DwmHandleDesktopRequest(DWM_CLIENT* client,
|
||||
status = NTLSTATUS_INVALID_PARAMETER;
|
||||
break;
|
||||
}
|
||||
if (window->Visible != request->Value) {
|
||||
if (window->Visible != (request->Value != 0)) {
|
||||
DwmDirtyLocked(&window->Bounds);
|
||||
window->Visible = request->Value;
|
||||
window->Visible = request->Value != 0;
|
||||
if (!window->Visible) {
|
||||
DwmReleaseFocusLocked(window);
|
||||
if (gDwm.Captured == window) (void)DwmReleaseCaptureLocked(window);
|
||||
|
||||
Reference in new issue
Block a user