Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
dc26f278
Commit
dc26f278
authored
Mar 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Moved support for window moving/resizing back to user32.
parent
b9dee8ef
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
11 deletions
+41
-11
driver.c
dlls/user32/driver.c
+4
-3
nonclient.c
dlls/user32/nonclient.c
+1
-1
user32.spec
dlls/user32/user32.spec
+0
-2
user_private.h
dlls/user32/user_private.h
+1
-1
win.h
dlls/user32/win.h
+1
-1
winpos.c
dlls/user32/winpos.c
+0
-0
window.c
dlls/winex11.drv/window.c
+33
-0
winex11.drv.spec
dlls/winex11.drv/winex11.drv.spec
+1
-0
winpos.c
dlls/winex11.drv/winpos.c
+0
-0
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-3
No files found.
dlls/user32/driver.c
View file @
dc26f278
...
...
@@ -400,8 +400,9 @@ static void nulldrv_SetWindowText( HWND hwnd, LPCWSTR text )
{
}
static
void
nulldrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
static
BOOL
nulldrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
{
return
FALSE
;
}
static
LRESULT
nulldrv_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
@@ -725,9 +726,9 @@ static void loaderdrv_SetWindowText( HWND hwnd, LPCWSTR text )
load_driver
()
->
pSetWindowText
(
hwnd
,
text
);
}
static
void
loaderdrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
static
BOOL
loaderdrv_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wparam
)
{
load_driver
()
->
pSysCommandSizeMove
(
hwnd
,
wparam
);
return
load_driver
()
->
pSysCommandSizeMove
(
hwnd
,
wparam
);
}
static
LRESULT
loaderdrv_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
dlls/user32/nonclient.c
View file @
dc26f278
...
...
@@ -1532,7 +1532,7 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
{
case
SC_SIZE
:
case
SC_MOVE
:
USER_Driver
->
p
SysCommandSizeMove
(
hwnd
,
wParam
);
WINPOS_
SysCommandSizeMove
(
hwnd
,
wParam
);
break
;
case
SC_MINIMIZE
:
...
...
dlls/user32/user32.spec
View file @
dc26f278
...
...
@@ -788,6 +788,4 @@
# Wine dll separation hacks, these will go away, don't use them
#
@ cdecl HOOK_CallHooks(long long long long long)
@ cdecl WINPOS_GetMinMaxInfo(long ptr ptr ptr ptr)
@ cdecl WINPOS_ShowIconTitle(long long)
@ cdecl WIN_invalidate_dce(long ptr) invalidate_dce
dlls/user32/user_private.h
View file @
dc26f278
...
...
@@ -156,7 +156,7 @@ typedef struct tagUSER_DRIVER {
void
(
*
pSetWindowIcon
)(
HWND
,
UINT
,
HICON
);
void
(
*
pSetWindowStyle
)(
HWND
,
DWORD
);
void
(
*
pSetWindowText
)(
HWND
,
LPCWSTR
);
void
(
*
pSysCommandSizeMove
)(
HWND
,
WPARAM
);
BOOL
(
*
pSysCommandSizeMove
)(
HWND
,
WPARAM
);
LRESULT
(
*
pWindowMessage
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
}
USER_DRIVER
;
...
...
dlls/user32/win.h
View file @
dc26f278
...
...
@@ -112,13 +112,13 @@ static inline void WIN_ReleasePtr( WND *ptr )
extern
LRESULT
HOOK_CallHooks
(
INT
id
,
INT
code
,
WPARAM
wparam
,
LPARAM
lparam
,
BOOL
unicode
)
DECLSPEC_HIDDEN
;
extern
BOOL
WINPOS_RedrawIconTitle
(
HWND
hWnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
WINPOS_ShowIconTitle
(
HWND
hwnd
,
BOOL
bShow
)
DECLSPEC_HIDDEN
;
extern
void
WINPOS_GetMinMaxInfo
(
HWND
hwnd
,
POINT
*
maxSize
,
POINT
*
maxPos
,
POINT
*
minTrack
,
POINT
*
maxTrack
)
DECLSPEC_HIDDEN
;
extern
LONG
WINPOS_HandleWindowPosChanging
(
HWND
hwnd
,
WINDOWPOS
*
winpos
)
DECLSPEC_HIDDEN
;
extern
HWND
WINPOS_WindowFromPoint
(
HWND
hwndScope
,
POINT
pt
,
INT
*
hittest
)
DECLSPEC_HIDDEN
;
extern
void
WINPOS_ActivateOtherWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
UINT
WINPOS_MinMaximize
(
HWND
hwnd
,
UINT
cmd
,
LPRECT
rect
)
DECLSPEC_HIDDEN
;
extern
void
WINPOS_SysCommandSizeMove
(
HWND
hwnd
,
WPARAM
wParam
)
DECLSPEC_HIDDEN
;
extern
BOOL
set_window_pos
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
...
...
dlls/user32/winpos.c
View file @
dc26f278
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/window.c
View file @
dc26f278
...
...
@@ -1567,6 +1567,39 @@ void X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
}
/***********************************************************************
* SetCapture (X11DRV.@)
*/
void
X11DRV_SetCapture
(
HWND
hwnd
,
UINT
flags
)
{
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
if
(
!
(
flags
&
GUI_INMOVESIZE
))
return
;
if
(
hwnd
)
{
Window
grab_win
=
X11DRV_get_client_window
(
GetAncestor
(
hwnd
,
GA_ROOT
)
);
if
(
!
grab_win
)
return
;
wine_tsx11_lock
();
XFlush
(
gdi_display
);
XGrabPointer
(
thread_data
->
display
,
grab_win
,
False
,
PointerMotionMask
|
ButtonPressMask
|
ButtonReleaseMask
,
GrabModeAsync
,
GrabModeAsync
,
root_window
,
None
,
CurrentTime
);
wine_tsx11_unlock
();
thread_data
->
grab_window
=
grab_win
;
}
else
/* release capture */
{
wine_tsx11_lock
();
XFlush
(
gdi_display
);
XUngrabPointer
(
thread_data
->
display
,
CurrentTime
);
wine_tsx11_unlock
();
thread_data
->
grab_window
=
None
;
}
}
/*****************************************************************
* SetParent (X11DRV.@)
*/
...
...
dlls/winex11.drv/winex11.drv.spec
View file @
dc26f278
...
...
@@ -104,6 +104,7 @@
@ cdecl ReleaseDC(long long) X11DRV_ReleaseDC
@ cdecl ScrollDC(long long long ptr ptr long ptr) X11DRV_ScrollDC
@ cdecl SetClipboardData(long long long long) X11DRV_SetClipboardData
@ cdecl SetCapture(long long) X11DRV_SetCapture
@ cdecl SetFocus(long) X11DRV_SetFocus
@ cdecl SetParent(long long long) X11DRV_SetParent
@ cdecl SetWindowIcon(long long long) X11DRV_SetWindowIcon
...
...
dlls/winex11.drv/winpos.c
View file @
dc26f278
This diff is collapsed.
Click to expand it.
dlls/winex11.drv/x11drv.h
View file @
dc26f278
...
...
@@ -753,9 +753,6 @@ extern void X11DRV_DDHAL_SwitchMode(DWORD dwModeIndex, LPVOID fb_addr, LPVIDMEM
/* FIXME: private functions imported from user32 */
extern
LRESULT
HOOK_CallHooks
(
INT
id
,
INT
code
,
WPARAM
wparam
,
LPARAM
lparam
,
BOOL
unicode
);
extern
BOOL
WINPOS_ShowIconTitle
(
HWND
hwnd
,
BOOL
bShow
);
extern
void
WINPOS_GetMinMaxInfo
(
HWND
hwnd
,
POINT
*
maxSize
,
POINT
*
maxPos
,
POINT
*
minTrack
,
POINT
*
maxTrack
);
extern
void
WIN_invalidate_dce
(
HWND
hwnd
,
const
RECT
*
rect
);
#endif
/* __WINE_X11DRV_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment