[ros-diffs] [fireball] 47949: - Remove deprecated SwmGetTopWindow(), use SwmGetForegroundWindow() instead.
fireball at svn.reactos.org
fireball at svn.reactos.org
Mon Jul 5 12:57:17 UTC 2010
Author: fireball
Date: Mon Jul 5 12:57:16 2010
New Revision: 47949
URL: http://svn.reactos.org/svn/reactos?rev=47949&view=rev
Log:
- Remove deprecated SwmGetTopWindow(), use SwmGetForegroundWindow() instead.
Modified:
branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c
Modified: branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c
URL: http://svn.reactos.org/svn/reactos/branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c?rev=47949&r1=47948&r2=47949&view=diff
==============================================================================
--- branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c [iso-8859-1] (original)
+++ branches/arwinss/reactos/subsystems/win32/win32k/swm/winman.c [iso-8859-1] Mon Jul 5 12:57:16 2010
@@ -22,7 +22,6 @@
void redraw_window( struct window *win, struct region *region, int frame, unsigned int flags );
void req_update_window_zorder( const struct update_window_zorder_request *req, struct update_window_zorder_reply *reply );
-PSWM_WINDOW NTAPI SwmGetTopWindow();
PSWM_WINDOW NTAPI SwmGetForegroundWindow(BOOLEAN TopMost);
VOID NTAPI SwmClipAllWindows();
@@ -216,7 +215,7 @@
DPRINT("Calculating visibility for %x\n", CalcWindow->hwnd);
/* Check if this window is already on top */
- if (CalcWindow == SwmGetTopWindow())
+ if (CalcWindow == SwmGetForegroundWindow(TRUE))
{
/* It is, make sure it's fully visible */
NewRegion = create_empty_region();
@@ -497,31 +496,6 @@
/* Release the lock */
SwmRelease();
-}
-
-// FIXME: This one is deprecated and will be removed soon
-PSWM_WINDOW
-NTAPI
-SwmGetTopWindow()
-{
- PLIST_ENTRY Current;
- PSWM_WINDOW Window;
-
- /* Traverse the list to find top non-hidden window */
- Current = SwmWindows.Flink;
- while(Current != &SwmWindows)
- {
- Window = CONTAINING_RECORD(Current, SWM_WINDOW, Entry);
-
- /* If this window is not hidden - it's the top one */
- if (!Window->Hidden) return Window;
-
- Current = Current->Flink;
- }
-
- /* This should never happen */
- ASSERT(FALSE);
- return NULL;
}
PSWM_WINDOW
More information about the Ros-diffs
mailing list