[Wine-patches] [eterhack 1/2] winex11.drv: Removed unused code. (eterbug #8330)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Ср Окт 17 10:43:21 MSK 2012


---
 dlls/winex11.drv/window.c | 60 -----------------------------------------------
 1 file changed, 60 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index 23adf16..654c8a9 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -2197,42 +2197,6 @@ done:
     fetch_icon_data( hwnd, 0, 0 );
 }
 
-typedef struct _check_data
-{
-    Window wnd;
-    HWND ret;
-}check_data;
-
-BOOL CALLBACK CheckWindow( HWND hwnd, LPARAM lParam )
-{
-    struct x11drv_win_data *data;
-
-    if (!(data = get_win_data( hwnd ))) return TRUE;
-
-    if (data->whole_window == ((check_data*)lParam)->wnd)
-    {
-        ((check_data*)lParam)->ret = hwnd;
-        return FALSE;
-    }
-    return TRUE;
-}
-
-HWND get_handle(Window wnd)
-{
-    static HWND hprev = 0;
-    static Window wprev = 0;
-    check_data chd;
-
-    if (wnd == wprev) return hprev;
-
-    chd.wnd = wnd;
-    chd.ret = 0;
-    EnumWindows( CheckWindow, (LPARAM)&chd );
-    wprev = wnd;
-    hprev = chd.ret;
-    return chd.ret;
-}
-
 /*****************************************************************
  *      DropWindow   (X11DRV.@)
  *
@@ -2255,30 +2219,6 @@ void CDECL X11DRV_DropWindow( HWND hwnd )
     update_net_wm_states( data );
 }
 
-void raise_window( HWND hwnd, Display *display )
-{
-    static HWND prev = NULL;
-    struct x11drv_win_data *data;
-
-    if (!getenv("WINEENABLERAISE")) return;
-    if (!(data = get_win_data( hwnd ))) return;
-
-    SetWindowLongW(hwnd, GWL_EXSTYLE, GetWindowLongW( hwnd, GWL_EXSTYLE ) | WS_EX_TOPMOST);
-    update_net_wm_states( data );
-
-    if (prev && (prev != hwnd))
-    {
-        if (!(data = get_win_data( prev )))
-        {
-            prev = hwnd;
-            return;
-        }
-        SetWindowLongW(prev, GWL_EXSTYLE, GetWindowLongW( prev, GWL_EXSTYLE ) & ~WS_EX_TOPMOST);
-        update_net_wm_states( data );
-    }
-    prev = hwnd;
-}
-
 static inline RECT get_surface_rect( const RECT *visible_rect )
 {
     RECT rect;
-- 
1.7.12.3



Подробная информация о списке рассылки Wine-patches