Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0a645959
Commit
0a645959
authored
Dec 16, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Dec 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/winex11.drv: Change all user32 operations to use CDECL.
parent
131d0a79
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
112 additions
and
112 deletions
+112
-112
driver.c
dlls/user32/driver.c
+0
-0
user_private.h
dlls/user32/user_private.h
+52
-52
clipboard.c
dlls/winex11.drv/clipboard.c
+12
-12
event.c
dlls/winex11.drv/event.c
+2
-2
keyboard.c
dlls/winex11.drv/keyboard.c
+11
-11
mouse.c
dlls/winex11.drv/mouse.c
+5
-5
scroll.c
dlls/winex11.drv/scroll.c
+1
-1
settings.c
dlls/winex11.drv/settings.c
+2
-2
window.c
dlls/winex11.drv/window.c
+18
-18
x11drv.h
dlls/winex11.drv/x11drv.h
+5
-5
x11drv_main.c
dlls/winex11.drv/x11drv_main.c
+2
-2
xinerama.c
dlls/winex11.drv/xinerama.c
+2
-2
No files found.
dlls/user32/driver.c
View file @
0a645959
This diff is collapsed.
Click to expand it.
dlls/user32/user_private.h
View file @
0a645959
...
@@ -104,63 +104,63 @@ struct tagCURSORICONINFO;
...
@@ -104,63 +104,63 @@ struct tagCURSORICONINFO;
typedef
struct
tagUSER_DRIVER
{
typedef
struct
tagUSER_DRIVER
{
/* keyboard functions */
/* keyboard functions */
HKL
(
*
pActivateKeyboardLayout
)(
HKL
,
UINT
);
HKL
(
CDECL
*
pActivateKeyboardLayout
)(
HKL
,
UINT
);
void
(
*
pBeep
)(
void
);
void
(
CDECL
*
pBeep
)(
void
);
SHORT
(
*
pGetAsyncKeyState
)(
INT
);
SHORT
(
CDECL
*
pGetAsyncKeyState
)(
INT
);
INT
(
*
pGetKeyNameText
)(
LONG
,
LPWSTR
,
INT
);
INT
(
CDECL
*
pGetKeyNameText
)(
LONG
,
LPWSTR
,
INT
);
HKL
(
*
pGetKeyboardLayout
)(
DWORD
);
HKL
(
CDECL
*
pGetKeyboardLayout
)(
DWORD
);
BOOL
(
*
pGetKeyboardLayoutName
)(
LPWSTR
);
BOOL
(
CDECL
*
pGetKeyboardLayoutName
)(
LPWSTR
);
HKL
(
*
pLoadKeyboardLayout
)(
LPCWSTR
,
UINT
);
HKL
(
CDECL
*
pLoadKeyboardLayout
)(
LPCWSTR
,
UINT
);
UINT
(
*
pMapVirtualKeyEx
)(
UINT
,
UINT
,
HKL
);
UINT
(
CDECL
*
pMapVirtualKeyEx
)(
UINT
,
UINT
,
HKL
);
UINT
(
*
pSendInput
)(
UINT
,
LPINPUT
,
int
);
UINT
(
CDECL
*
pSendInput
)(
UINT
,
LPINPUT
,
int
);
INT
(
*
pToUnicodeEx
)(
UINT
,
UINT
,
const
BYTE
*
,
LPWSTR
,
int
,
UINT
,
HKL
);
INT
(
CDECL
*
pToUnicodeEx
)(
UINT
,
UINT
,
const
BYTE
*
,
LPWSTR
,
int
,
UINT
,
HKL
);
BOOL
(
*
pUnloadKeyboardLayout
)(
HKL
);
BOOL
(
CDECL
*
pUnloadKeyboardLayout
)(
HKL
);
SHORT
(
*
pVkKeyScanEx
)(
WCHAR
,
HKL
);
SHORT
(
CDECL
*
pVkKeyScanEx
)(
WCHAR
,
HKL
);
/* mouse functions */
/* mouse functions */
void
(
*
pSetCursor
)(
struct
tagCURSORICONINFO
*
);
void
(
CDECL
*
pSetCursor
)(
struct
tagCURSORICONINFO
*
);
BOOL
(
*
pGetCursorPos
)(
LPPOINT
);
BOOL
(
CDECL
*
pGetCursorPos
)(
LPPOINT
);
BOOL
(
*
pSetCursorPos
)(
INT
,
INT
);
BOOL
(
CDECL
*
pSetCursorPos
)(
INT
,
INT
);
BOOL
(
*
pClipCursor
)(
LPCRECT
);
BOOL
(
CDECL
*
pClipCursor
)(
LPCRECT
);
/* screen saver functions */
/* screen saver functions */
BOOL
(
*
pGetScreenSaveActive
)(
void
);
BOOL
(
CDECL
*
pGetScreenSaveActive
)(
void
);
void
(
*
pSetScreenSaveActive
)(
BOOL
);
void
(
CDECL
*
pSetScreenSaveActive
)(
BOOL
);
/* clipboard functions */
/* clipboard functions */
INT
(
*
pAcquireClipboard
)(
HWND
);
/* Acquire selection */
INT
(
CDECL
*
pAcquireClipboard
)(
HWND
);
/* Acquire selection */
BOOL
(
*
pCountClipboardFormats
)(
void
);
/* Count available clipboard formats */
BOOL
(
CDECL
*
pCountClipboardFormats
)(
void
);
/* Count available clipboard formats */
void
(
*
pEmptyClipboard
)(
BOOL
);
/* Empty clipboard data */
void
(
CDECL
*
pEmptyClipboard
)(
BOOL
);
/* Empty clipboard data */
void
(
*
pEndClipboardUpdate
)(
void
);
/* End clipboard update */
void
(
CDECL
*
pEndClipboardUpdate
)(
void
);
/* End clipboard update */
UINT
(
*
pEnumClipboardFormats
)(
UINT
);
/* Enumerate clipboard formats */
UINT
(
CDECL
*
pEnumClipboardFormats
)(
UINT
);
/* Enumerate clipboard formats */
BOOL
(
*
pGetClipboardData
)(
UINT
,
HANDLE16
*
,
HANDLE
*
);
/* Get specified selection data */
BOOL
(
CDECL
*
pGetClipboardData
)(
UINT
,
HANDLE16
*
,
HANDLE
*
);
/* Get specified selection data */
INT
(
*
pGetClipboardFormatName
)(
UINT
,
LPWSTR
,
UINT
);
/* Get a clipboard format name */
INT
(
CDECL
*
pGetClipboardFormatName
)(
UINT
,
LPWSTR
,
UINT
);
/* Get a clipboard format name */
BOOL
(
*
pIsClipboardFormatAvailable
)(
UINT
);
/* Check if specified format is available */
BOOL
(
CDECL
*
pIsClipboardFormatAvailable
)(
UINT
);
/* Check if specified format is available */
UINT
(
*
pRegisterClipboardFormat
)(
LPCWSTR
);
/* Register a clipboard format */
UINT
(
CDECL
*
pRegisterClipboardFormat
)(
LPCWSTR
);
/* Register a clipboard format */
BOOL
(
*
pSetClipboardData
)(
UINT
,
HANDLE16
,
HANDLE
,
BOOL
);
/* Set specified selection data */
BOOL
(
CDECL
*
pSetClipboardData
)(
UINT
,
HANDLE16
,
HANDLE
,
BOOL
);
/* Set specified selection data */
/* display modes */
/* display modes */
LONG
(
*
pChangeDisplaySettingsEx
)(
LPCWSTR
,
LPDEVMODEW
,
HWND
,
DWORD
,
LPVOID
);
LONG
(
CDECL
*
pChangeDisplaySettingsEx
)(
LPCWSTR
,
LPDEVMODEW
,
HWND
,
DWORD
,
LPVOID
);
BOOL
(
*
pEnumDisplayMonitors
)(
HDC
,
LPRECT
,
MONITORENUMPROC
,
LPARAM
);
BOOL
(
CDECL
*
pEnumDisplayMonitors
)(
HDC
,
LPRECT
,
MONITORENUMPROC
,
LPARAM
);
BOOL
(
*
pEnumDisplaySettingsEx
)(
LPCWSTR
,
DWORD
,
LPDEVMODEW
,
DWORD
);
BOOL
(
CDECL
*
pEnumDisplaySettingsEx
)(
LPCWSTR
,
DWORD
,
LPDEVMODEW
,
DWORD
);
BOOL
(
*
pGetMonitorInfo
)(
HMONITOR
,
MONITORINFO
*
);
BOOL
(
CDECL
*
pGetMonitorInfo
)(
HMONITOR
,
MONITORINFO
*
);
/* windowing functions */
/* windowing functions */
BOOL
(
*
pCreateDesktopWindow
)(
HWND
);
BOOL
(
CDECL
*
pCreateDesktopWindow
)(
HWND
);
BOOL
(
*
pCreateWindow
)(
HWND
);
BOOL
(
CDECL
*
pCreateWindow
)(
HWND
);
void
(
*
pDestroyWindow
)(
HWND
);
void
(
CDECL
*
pDestroyWindow
)(
HWND
);
void
(
*
pGetDC
)(
HDC
,
HWND
,
HWND
,
const
RECT
*
,
const
RECT
*
,
DWORD
);
void
(
CDECL
*
pGetDC
)(
HDC
,
HWND
,
HWND
,
const
RECT
*
,
const
RECT
*
,
DWORD
);
DWORD
(
*
pMsgWaitForMultipleObjectsEx
)(
DWORD
,
const
HANDLE
*
,
DWORD
,
DWORD
,
DWORD
);
DWORD
(
CDECL
*
pMsgWaitForMultipleObjectsEx
)(
DWORD
,
const
HANDLE
*
,
DWORD
,
DWORD
,
DWORD
);
void
(
*
pReleaseDC
)(
HWND
,
HDC
);
void
(
CDECL
*
pReleaseDC
)(
HWND
,
HDC
);
BOOL
(
*
pScrollDC
)(
HDC
,
INT
,
INT
,
const
RECT
*
,
const
RECT
*
,
HRGN
,
LPRECT
);
BOOL
(
CDECL
*
pScrollDC
)(
HDC
,
INT
,
INT
,
const
RECT
*
,
const
RECT
*
,
HRGN
,
LPRECT
);
void
(
*
pSetCapture
)(
HWND
,
UINT
);
void
(
CDECL
*
pSetCapture
)(
HWND
,
UINT
);
void
(
*
pSetFocus
)(
HWND
);
void
(
CDECL
*
pSetFocus
)(
HWND
);
void
(
*
pSetLayeredWindowAttributes
)(
HWND
,
COLORREF
,
BYTE
,
DWORD
);
void
(
CDECL
*
pSetLayeredWindowAttributes
)(
HWND
,
COLORREF
,
BYTE
,
DWORD
);
void
(
*
pSetParent
)(
HWND
,
HWND
,
HWND
);
void
(
CDECL
*
pSetParent
)(
HWND
,
HWND
,
HWND
);
int
(
*
pSetWindowRgn
)(
HWND
,
HRGN
,
BOOL
);
int
(
CDECL
*
pSetWindowRgn
)(
HWND
,
HRGN
,
BOOL
);
void
(
*
pSetWindowIcon
)(
HWND
,
UINT
,
HICON
);
void
(
CDECL
*
pSetWindowIcon
)(
HWND
,
UINT
,
HICON
);
void
(
*
pSetWindowStyle
)(
HWND
,
INT
,
STYLESTRUCT
*
);
void
(
CDECL
*
pSetWindowStyle
)(
HWND
,
INT
,
STYLESTRUCT
*
);
void
(
*
pSetWindowText
)(
HWND
,
LPCWSTR
);
void
(
CDECL
*
pSetWindowText
)(
HWND
,
LPCWSTR
);
UINT
(
*
pShowWindow
)(
HWND
,
INT
,
RECT
*
,
UINT
);
UINT
(
CDECL
*
pShowWindow
)(
HWND
,
INT
,
RECT
*
,
UINT
);
LRESULT
(
*
pSysCommand
)(
HWND
,
WPARAM
,
LPARAM
);
LRESULT
(
CDECL
*
pSysCommand
)(
HWND
,
WPARAM
,
LPARAM
);
LRESULT
(
*
pWindowMessage
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
LRESULT
(
CDECL
*
pWindowMessage
)(
HWND
,
UINT
,
WPARAM
,
LPARAM
);
void
(
*
pWindowPosChanging
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
RECT
*
);
void
(
CDECL
*
pWindowPosChanging
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
RECT
*
);
void
(
*
pWindowPosChanged
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
);
void
(
CDECL
*
pWindowPosChanged
)(
HWND
,
HWND
,
UINT
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
,
const
RECT
*
);
}
USER_DRIVER
;
}
USER_DRIVER
;
extern
const
USER_DRIVER
*
USER_Driver
DECLSPEC_HIDDEN
;
extern
const
USER_DRIVER
*
USER_Driver
DECLSPEC_HIDDEN
;
...
...
dlls/winex11.drv/clipboard.c
View file @
0a645959
...
@@ -145,8 +145,8 @@ static int selectionAcquired = 0; /* Contains the current selection
...
@@ -145,8 +145,8 @@ static int selectionAcquired = 0; /* Contains the current selection
static
Window
selectionWindow
=
None
;
/* The top level X window which owns the selection */
static
Window
selectionWindow
=
None
;
/* The top level X window which owns the selection */
static
Atom
selectionCacheSrc
=
XA_PRIMARY
;
/* The selection source from which the clipboard cache was filled */
static
Atom
selectionCacheSrc
=
XA_PRIMARY
;
/* The selection source from which the clipboard cache was filled */
void
X11DRV_EmptyClipboard
(
BOOL
keepunowned
);
void
CDECL
X11DRV_EmptyClipboard
(
BOOL
keepunowned
);
void
X11DRV_EndClipboardUpdate
(
void
);
void
CDECL
X11DRV_EndClipboardUpdate
(
void
);
static
HANDLE
X11DRV_CLIPBOARD_ImportClipboardData
(
Display
*
d
,
Window
w
,
Atom
prop
);
static
HANDLE
X11DRV_CLIPBOARD_ImportClipboardData
(
Display
*
d
,
Window
w
,
Atom
prop
);
static
HANDLE
X11DRV_CLIPBOARD_ImportEnhMetaFile
(
Display
*
d
,
Window
w
,
Atom
prop
);
static
HANDLE
X11DRV_CLIPBOARD_ImportEnhMetaFile
(
Display
*
d
,
Window
w
,
Atom
prop
);
static
HANDLE
X11DRV_CLIPBOARD_ImportMetaFilePict
(
Display
*
d
,
Window
w
,
Atom
prop
);
static
HANDLE
X11DRV_CLIPBOARD_ImportMetaFilePict
(
Display
*
d
,
Window
w
,
Atom
prop
);
...
@@ -2330,7 +2330,7 @@ static BOOL X11DRV_CLIPBOARD_IsSelectionOwner(void)
...
@@ -2330,7 +2330,7 @@ static BOOL X11DRV_CLIPBOARD_IsSelectionOwner(void)
* Registers a custom X clipboard format
* Registers a custom X clipboard format
* Returns: Format id or 0 on failure
* Returns: Format id or 0 on failure
*/
*/
UINT
X11DRV_RegisterClipboardFormat
(
LPCWSTR
FormatName
)
UINT
CDECL
X11DRV_RegisterClipboardFormat
(
LPCWSTR
FormatName
)
{
{
LPWINE_CLIPFORMAT
lpFormat
;
LPWINE_CLIPFORMAT
lpFormat
;
...
@@ -2343,7 +2343,7 @@ UINT X11DRV_RegisterClipboardFormat(LPCWSTR FormatName)
...
@@ -2343,7 +2343,7 @@ UINT X11DRV_RegisterClipboardFormat(LPCWSTR FormatName)
/**************************************************************************
/**************************************************************************
* X11DRV_GetClipboardFormatName
* X11DRV_GetClipboardFormatName
*/
*/
INT
X11DRV_GetClipboardFormatName
(
UINT
wFormat
,
LPWSTR
retStr
,
INT
maxlen
)
INT
CDECL
X11DRV_GetClipboardFormatName
(
UINT
wFormat
,
LPWSTR
retStr
,
INT
maxlen
)
{
{
LPWINE_CLIPFORMAT
lpFormat
;
LPWINE_CLIPFORMAT
lpFormat
;
...
@@ -2373,7 +2373,7 @@ INT X11DRV_GetClipboardFormatName(UINT wFormat, LPWSTR retStr, INT maxlen)
...
@@ -2373,7 +2373,7 @@ INT X11DRV_GetClipboardFormatName(UINT wFormat, LPWSTR retStr, INT maxlen)
/**************************************************************************
/**************************************************************************
* AcquireClipboard (X11DRV.@)
* AcquireClipboard (X11DRV.@)
*/
*/
int
X11DRV_AcquireClipboard
(
HWND
hWndClipWindow
)
int
CDECL
X11DRV_AcquireClipboard
(
HWND
hWndClipWindow
)
{
{
DWORD
procid
;
DWORD
procid
;
Window
owner
;
Window
owner
;
...
@@ -2443,7 +2443,7 @@ int X11DRV_AcquireClipboard(HWND hWndClipWindow)
...
@@ -2443,7 +2443,7 @@ int X11DRV_AcquireClipboard(HWND hWndClipWindow)
*
*
* Empty cached clipboard data.
* Empty cached clipboard data.
*/
*/
void
X11DRV_EmptyClipboard
(
BOOL
keepunowned
)
void
CDECL
X11DRV_EmptyClipboard
(
BOOL
keepunowned
)
{
{
if
(
ClipData
)
if
(
ClipData
)
{
{
...
@@ -2482,7 +2482,7 @@ void X11DRV_EmptyClipboard(BOOL keepunowned)
...
@@ -2482,7 +2482,7 @@ void X11DRV_EmptyClipboard(BOOL keepunowned)
/**************************************************************************
/**************************************************************************
* X11DRV_SetClipboardData
* X11DRV_SetClipboardData
*/
*/
BOOL
X11DRV_SetClipboardData
(
UINT
wFormat
,
HANDLE16
hData16
,
HANDLE
hData32
,
BOOL
owner
)
BOOL
CDECL
X11DRV_SetClipboardData
(
UINT
wFormat
,
HANDLE16
hData16
,
HANDLE
hData32
,
BOOL
owner
)
{
{
DWORD
flags
=
0
;
DWORD
flags
=
0
;
BOOL
bResult
=
TRUE
;
BOOL
bResult
=
TRUE
;
...
@@ -2513,7 +2513,7 @@ BOOL X11DRV_SetClipboardData(UINT wFormat, HANDLE16 hData16, HANDLE hData32, BOO
...
@@ -2513,7 +2513,7 @@ BOOL X11DRV_SetClipboardData(UINT wFormat, HANDLE16 hData16, HANDLE hData32, BOO
/**************************************************************************
/**************************************************************************
* CountClipboardFormats
* CountClipboardFormats
*/
*/
INT
X11DRV_CountClipboardFormats
(
void
)
INT
CDECL
X11DRV_CountClipboardFormats
(
void
)
{
{
CLIPBOARDINFO
cbinfo
;
CLIPBOARDINFO
cbinfo
;
...
@@ -2528,7 +2528,7 @@ INT X11DRV_CountClipboardFormats(void)
...
@@ -2528,7 +2528,7 @@ INT X11DRV_CountClipboardFormats(void)
/**************************************************************************
/**************************************************************************
* X11DRV_EnumClipboardFormats
* X11DRV_EnumClipboardFormats
*/
*/
UINT
X11DRV_EnumClipboardFormats
(
UINT
wFormat
)
UINT
CDECL
X11DRV_EnumClipboardFormats
(
UINT
wFormat
)
{
{
CLIPBOARDINFO
cbinfo
;
CLIPBOARDINFO
cbinfo
;
UINT
wNextFormat
=
0
;
UINT
wNextFormat
=
0
;
...
@@ -2557,7 +2557,7 @@ UINT X11DRV_EnumClipboardFormats(UINT wFormat)
...
@@ -2557,7 +2557,7 @@ UINT X11DRV_EnumClipboardFormats(UINT wFormat)
/**************************************************************************
/**************************************************************************
* X11DRV_IsClipboardFormatAvailable
* X11DRV_IsClipboardFormatAvailable
*/
*/
BOOL
X11DRV_IsClipboardFormatAvailable
(
UINT
wFormat
)
BOOL
CDECL
X11DRV_IsClipboardFormatAvailable
(
UINT
wFormat
)
{
{
BOOL
bRet
=
FALSE
;
BOOL
bRet
=
FALSE
;
CLIPBOARDINFO
cbinfo
;
CLIPBOARDINFO
cbinfo
;
...
@@ -2578,7 +2578,7 @@ BOOL X11DRV_IsClipboardFormatAvailable(UINT wFormat)
...
@@ -2578,7 +2578,7 @@ BOOL X11DRV_IsClipboardFormatAvailable(UINT wFormat)
/**************************************************************************
/**************************************************************************
* GetClipboardData (USER.142)
* GetClipboardData (USER.142)
*/
*/
BOOL
X11DRV_GetClipboardData
(
UINT
wFormat
,
HANDLE16
*
phData16
,
HANDLE
*
phData32
)
BOOL
CDECL
X11DRV_GetClipboardData
(
UINT
wFormat
,
HANDLE16
*
phData16
,
HANDLE
*
phData32
)
{
{
CLIPBOARDINFO
cbinfo
;
CLIPBOARDINFO
cbinfo
;
LPWINE_CLIPDATA
lpRender
;
LPWINE_CLIPDATA
lpRender
;
...
@@ -2773,7 +2773,7 @@ static BOOL X11DRV_CLIPBOARD_SynthesizeData(UINT wFormatID)
...
@@ -2773,7 +2773,7 @@ static BOOL X11DRV_CLIPBOARD_SynthesizeData(UINT wFormatID)
* TODO:
* TODO:
* Add locale if it hasn't already been added
* Add locale if it hasn't already been added
*/
*/
void
X11DRV_EndClipboardUpdate
(
void
)
void
CDECL
X11DRV_EndClipboardUpdate
(
void
)
{
{
INT
count
=
ClipDataCount
;
INT
count
=
ClipDataCount
;
...
...
dlls/winex11.drv/event.c
View file @
0a645959
...
@@ -390,7 +390,7 @@ static int process_events( Display *display, Bool (*filter)(), ULONG_PTR arg )
...
@@ -390,7 +390,7 @@ static int process_events( Display *display, Bool (*filter)(), ULONG_PTR arg )
/***********************************************************************
/***********************************************************************
* MsgWaitForMultipleObjectsEx (X11DRV.@)
* MsgWaitForMultipleObjectsEx (X11DRV.@)
*/
*/
DWORD
X11DRV_MsgWaitForMultipleObjectsEx
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
CDECL
X11DRV_MsgWaitForMultipleObjectsEx
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
timeout
,
DWORD
mask
,
DWORD
flags
)
DWORD
timeout
,
DWORD
mask
,
DWORD
flags
)
{
{
DWORD
ret
;
DWORD
ret
;
...
@@ -1361,7 +1361,7 @@ static void X11DRV_ClientMessage( HWND hwnd, XEvent *xev )
...
@@ -1361,7 +1361,7 @@ static void X11DRV_ClientMessage( HWND hwnd, XEvent *xev )
/***********************************************************************
/***********************************************************************
* X11DRV_SendInput (X11DRV.@)
* X11DRV_SendInput (X11DRV.@)
*/
*/
UINT
X11DRV_SendInput
(
UINT
count
,
LPINPUT
inputs
,
int
size
)
UINT
CDECL
X11DRV_SendInput
(
UINT
count
,
LPINPUT
inputs
,
int
size
)
{
{
UINT
i
;
UINT
i
;
...
...
dlls/winex11.drv/keyboard.c
View file @
0a645959
...
@@ -1887,7 +1887,7 @@ static BOOL match_x11_keyboard_layout(HKL hkl)
...
@@ -1887,7 +1887,7 @@ static BOOL match_x11_keyboard_layout(HKL hkl)
/**********************************************************************
/**********************************************************************
* GetAsyncKeyState (X11DRV.@)
* GetAsyncKeyState (X11DRV.@)
*/
*/
SHORT
X11DRV_GetAsyncKeyState
(
INT
key
)
SHORT
CDECL
X11DRV_GetAsyncKeyState
(
INT
key
)
{
{
SHORT
retval
;
SHORT
retval
;
...
@@ -1905,7 +1905,7 @@ SHORT X11DRV_GetAsyncKeyState(INT key)
...
@@ -1905,7 +1905,7 @@ SHORT X11DRV_GetAsyncKeyState(INT key)
/***********************************************************************
/***********************************************************************
* GetKeyboardLayout (X11DRV.@)
* GetKeyboardLayout (X11DRV.@)
*/
*/
HKL
X11DRV_GetKeyboardLayout
(
DWORD
dwThreadid
)
HKL
CDECL
X11DRV_GetKeyboardLayout
(
DWORD
dwThreadid
)
{
{
if
(
!
dwThreadid
||
dwThreadid
==
GetCurrentThreadId
())
if
(
!
dwThreadid
||
dwThreadid
==
GetCurrentThreadId
())
{
{
...
@@ -1922,7 +1922,7 @@ HKL X11DRV_GetKeyboardLayout(DWORD dwThreadid)
...
@@ -1922,7 +1922,7 @@ HKL X11DRV_GetKeyboardLayout(DWORD dwThreadid)
/***********************************************************************
/***********************************************************************
* GetKeyboardLayoutName (X11DRV.@)
* GetKeyboardLayoutName (X11DRV.@)
*/
*/
BOOL
X11DRV_GetKeyboardLayoutName
(
LPWSTR
name
)
BOOL
CDECL
X11DRV_GetKeyboardLayoutName
(
LPWSTR
name
)
{
{
static
const
WCHAR
formatW
[]
=
{
'%'
,
'0'
,
'8'
,
'l'
,
'x'
,
0
};
static
const
WCHAR
formatW
[]
=
{
'%'
,
'0'
,
'8'
,
'l'
,
'x'
,
0
};
DWORD
layout
;
DWORD
layout
;
...
@@ -1945,7 +1945,7 @@ BOOL X11DRV_GetKeyboardLayoutName(LPWSTR name)
...
@@ -1945,7 +1945,7 @@ BOOL X11DRV_GetKeyboardLayoutName(LPWSTR name)
/***********************************************************************
/***********************************************************************
* LoadKeyboardLayout (X11DRV.@)
* LoadKeyboardLayout (X11DRV.@)
*/
*/
HKL
X11DRV_LoadKeyboardLayout
(
LPCWSTR
name
,
UINT
flags
)
HKL
CDECL
X11DRV_LoadKeyboardLayout
(
LPCWSTR
name
,
UINT
flags
)
{
{
FIXME
(
"%s, %04x: stub!
\n
"
,
debugstr_w
(
name
),
flags
);
FIXME
(
"%s, %04x: stub!
\n
"
,
debugstr_w
(
name
),
flags
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
@@ -1956,7 +1956,7 @@ HKL X11DRV_LoadKeyboardLayout(LPCWSTR name, UINT flags)
...
@@ -1956,7 +1956,7 @@ HKL X11DRV_LoadKeyboardLayout(LPCWSTR name, UINT flags)
/***********************************************************************
/***********************************************************************
* UnloadKeyboardLayout (X11DRV.@)
* UnloadKeyboardLayout (X11DRV.@)
*/
*/
BOOL
X11DRV_UnloadKeyboardLayout
(
HKL
hkl
)
BOOL
CDECL
X11DRV_UnloadKeyboardLayout
(
HKL
hkl
)
{
{
FIXME
(
"%p: stub!
\n
"
,
hkl
);
FIXME
(
"%p: stub!
\n
"
,
hkl
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
...
@@ -1967,7 +1967,7 @@ BOOL X11DRV_UnloadKeyboardLayout(HKL hkl)
...
@@ -1967,7 +1967,7 @@ BOOL X11DRV_UnloadKeyboardLayout(HKL hkl)
/***********************************************************************
/***********************************************************************
* ActivateKeyboardLayout (X11DRV.@)
* ActivateKeyboardLayout (X11DRV.@)
*/
*/
HKL
X11DRV_ActivateKeyboardLayout
(
HKL
hkl
,
UINT
flags
)
HKL
CDECL
X11DRV_ActivateKeyboardLayout
(
HKL
hkl
,
UINT
flags
)
{
{
HKL
oldHkl
=
0
;
HKL
oldHkl
=
0
;
struct
x11drv_thread_data
*
thread_data
=
x11drv_init_thread_data
();
struct
x11drv_thread_data
*
thread_data
=
x11drv_init_thread_data
();
...
@@ -2030,7 +2030,7 @@ void X11DRV_MappingNotify( HWND dummy, XEvent *event )
...
@@ -2030,7 +2030,7 @@ void X11DRV_MappingNotify( HWND dummy, XEvent *event )
*
*
* Note: Windows ignores HKL parameter and uses current active layout instead
* Note: Windows ignores HKL parameter and uses current active layout instead
*/
*/
SHORT
X11DRV_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
SHORT
CDECL
X11DRV_VkKeyScanEx
(
WCHAR
wChar
,
HKL
hkl
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
KeyCode
keycode
;
KeyCode
keycode
;
...
@@ -2122,7 +2122,7 @@ SHORT X11DRV_VkKeyScanEx(WCHAR wChar, HKL hkl)
...
@@ -2122,7 +2122,7 @@ SHORT X11DRV_VkKeyScanEx(WCHAR wChar, HKL hkl)
/***********************************************************************
/***********************************************************************
* MapVirtualKeyEx (X11DRV.@)
* MapVirtualKeyEx (X11DRV.@)
*/
*/
UINT
X11DRV_MapVirtualKeyEx
(
UINT
wCode
,
UINT
wMapType
,
HKL
hkl
)
UINT
CDECL
X11DRV_MapVirtualKeyEx
(
UINT
wCode
,
UINT
wMapType
,
HKL
hkl
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
...
@@ -2265,7 +2265,7 @@ UINT X11DRV_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
...
@@ -2265,7 +2265,7 @@ UINT X11DRV_MapVirtualKeyEx(UINT wCode, UINT wMapType, HKL hkl)
/***********************************************************************
/***********************************************************************
* GetKeyNameText (X11DRV.@)
* GetKeyNameText (X11DRV.@)
*/
*/
INT
X11DRV_GetKeyNameText
(
LONG
lParam
,
LPWSTR
lpBuffer
,
INT
nSize
)
INT
CDECL
X11DRV_GetKeyNameText
(
LONG
lParam
,
LPWSTR
lpBuffer
,
INT
nSize
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
int
vkey
,
ansi
,
scanCode
;
int
vkey
,
ansi
,
scanCode
;
...
@@ -2457,7 +2457,7 @@ static char KEYBOARD_MapDeadKeysym(KeySym keysym)
...
@@ -2457,7 +2457,7 @@ static char KEYBOARD_MapDeadKeysym(KeySym keysym)
* FIXME : should do the above (return 2 for non matching deadchar+char combinations)
* FIXME : should do the above (return 2 for non matching deadchar+char combinations)
*
*
*/
*/
INT
X11DRV_ToUnicodeEx
(
UINT
virtKey
,
UINT
scanCode
,
const
BYTE
*
lpKeyState
,
INT
CDECL
X11DRV_ToUnicodeEx
(
UINT
virtKey
,
UINT
scanCode
,
const
BYTE
*
lpKeyState
,
LPWSTR
bufW
,
int
bufW_size
,
UINT
flags
,
HKL
hkl
)
LPWSTR
bufW
,
int
bufW_size
,
UINT
flags
,
HKL
hkl
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
...
@@ -2728,7 +2728,7 @@ found:
...
@@ -2728,7 +2728,7 @@ found:
/***********************************************************************
/***********************************************************************
* Beep (X11DRV.@)
* Beep (X11DRV.@)
*/
*/
void
X11DRV_Beep
(
void
)
void
CDECL
X11DRV_Beep
(
void
)
{
{
wine_tsx11_lock
();
wine_tsx11_lock
();
XBell
(
gdi_display
,
0
);
XBell
(
gdi_display
,
0
);
...
...
dlls/winex11.drv/mouse.c
View file @
0a645959
...
@@ -89,7 +89,7 @@ POINT cursor_pos;
...
@@ -89,7 +89,7 @@ POINT cursor_pos;
static
DWORD
last_time_modified
;
static
DWORD
last_time_modified
;
static
RECT
cursor_clip
;
/* Cursor clipping rect */
static
RECT
cursor_clip
;
/* Cursor clipping rect */
BOOL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
);
BOOL
CDECL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
);
/***********************************************************************
/***********************************************************************
...
@@ -933,7 +933,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
...
@@ -933,7 +933,7 @@ static Cursor create_cursor( Display *display, CURSORICONINFO *ptr )
/***********************************************************************
/***********************************************************************
* SetCursor (X11DRV.@)
* SetCursor (X11DRV.@)
*/
*/
void
X11DRV_SetCursor
(
CURSORICONINFO
*
lpCursor
)
void
CDECL
X11DRV_SetCursor
(
CURSORICONINFO
*
lpCursor
)
{
{
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
Cursor
cursor
;
Cursor
cursor
;
...
@@ -965,7 +965,7 @@ void X11DRV_SetCursor( CURSORICONINFO *lpCursor )
...
@@ -965,7 +965,7 @@ void X11DRV_SetCursor( CURSORICONINFO *lpCursor )
/***********************************************************************
/***********************************************************************
* SetCursorPos (X11DRV.@)
* SetCursorPos (X11DRV.@)
*/
*/
BOOL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
)
BOOL
CDECL
X11DRV_SetCursorPos
(
INT
x
,
INT
y
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
POINT
pt
;
POINT
pt
;
...
@@ -994,7 +994,7 @@ BOOL X11DRV_SetCursorPos( INT x, INT y )
...
@@ -994,7 +994,7 @@ BOOL X11DRV_SetCursorPos( INT x, INT y )
/***********************************************************************
/***********************************************************************
* GetCursorPos (X11DRV.@)
* GetCursorPos (X11DRV.@)
*/
*/
BOOL
X11DRV_GetCursorPos
(
LPPOINT
pos
)
BOOL
CDECL
X11DRV_GetCursorPos
(
LPPOINT
pos
)
{
{
Display
*
display
=
thread_init_display
();
Display
*
display
=
thread_init_display
();
Window
root
,
child
;
Window
root
,
child
;
...
@@ -1024,7 +1024,7 @@ BOOL X11DRV_GetCursorPos(LPPOINT pos)
...
@@ -1024,7 +1024,7 @@ BOOL X11DRV_GetCursorPos(LPPOINT pos)
*
*
* Set the cursor clipping rectangle.
* Set the cursor clipping rectangle.
*/
*/
BOOL
X11DRV_ClipCursor
(
LPCRECT
clip
)
BOOL
CDECL
X11DRV_ClipCursor
(
LPCRECT
clip
)
{
{
if
(
!
IntersectRect
(
&
cursor_clip
,
&
virtual_screen_rect
,
clip
))
if
(
!
IntersectRect
(
&
cursor_clip
,
&
virtual_screen_rect
,
clip
))
cursor_clip
=
virtual_screen_rect
;
cursor_clip
=
virtual_screen_rect
;
...
...
dlls/winex11.drv/scroll.c
View file @
0a645959
...
@@ -60,7 +60,7 @@ static void dump_region( const char *p, HRGN hrgn)
...
@@ -60,7 +60,7 @@ static void dump_region( const char *p, HRGN hrgn)
/*************************************************************************
/*************************************************************************
* ScrollDC (X11DRV.@)
* ScrollDC (X11DRV.@)
*/
*/
BOOL
X11DRV_ScrollDC
(
HDC
hdc
,
INT
dx
,
INT
dy
,
const
RECT
*
lprcScroll
,
BOOL
CDECL
X11DRV_ScrollDC
(
HDC
hdc
,
INT
dx
,
INT
dy
,
const
RECT
*
lprcScroll
,
const
RECT
*
lprcClip
,
HRGN
hrgnUpdate
,
LPRECT
lprcUpdate
)
const
RECT
*
lprcClip
,
HRGN
hrgnUpdate
,
LPRECT
lprcUpdate
)
{
{
RECT
rcSrc
,
rcClip
,
offset
;
RECT
rcSrc
,
rcClip
,
offset
;
...
...
dlls/winex11.drv/settings.c
View file @
0a645959
...
@@ -266,7 +266,7 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
...
@@ -266,7 +266,7 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
* EnumDisplaySettingsEx (X11DRV.@)
* EnumDisplaySettingsEx (X11DRV.@)
*
*
*/
*/
BOOL
X11DRV_EnumDisplaySettingsEx
(
LPCWSTR
name
,
DWORD
n
,
LPDEVMODEW
devmode
,
DWORD
flags
)
BOOL
CDECL
X11DRV_EnumDisplaySettingsEx
(
LPCWSTR
name
,
DWORD
n
,
LPDEVMODEW
devmode
,
DWORD
flags
)
{
{
static
const
WCHAR
dev_name
[
CCHDEVICENAME
]
=
static
const
WCHAR
dev_name
[
CCHDEVICENAME
]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'X'
,
'1'
,
'1'
,
' '
,
'd'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'X'
,
'1'
,
'1'
,
' '
,
'd'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
0
};
...
@@ -348,7 +348,7 @@ static const char * _DM_fields(DWORD fields)
...
@@ -348,7 +348,7 @@ static const char * _DM_fields(DWORD fields)
* ChangeDisplaySettingsEx (X11DRV.@)
* ChangeDisplaySettingsEx (X11DRV.@)
*
*
*/
*/
LONG
X11DRV_ChangeDisplaySettingsEx
(
LPCWSTR
devname
,
LPDEVMODEW
devmode
,
LONG
CDECL
X11DRV_ChangeDisplaySettingsEx
(
LPCWSTR
devname
,
LPDEVMODEW
devmode
,
HWND
hwnd
,
DWORD
flags
,
LPVOID
lpvoid
)
HWND
hwnd
,
DWORD
flags
,
LPVOID
lpvoid
)
{
{
DWORD
i
,
dwBpp
=
0
;
DWORD
i
,
dwBpp
=
0
;
...
...
dlls/winex11.drv/window.c
View file @
0a645959
...
@@ -1475,7 +1475,7 @@ static void destroy_whole_window( Display *display, struct x11drv_win_data *data
...
@@ -1475,7 +1475,7 @@ static void destroy_whole_window( Display *display, struct x11drv_win_data *data
/*****************************************************************
/*****************************************************************
* SetWindowText (X11DRV.@)
* SetWindowText (X11DRV.@)
*/
*/
void
X11DRV_SetWindowText
(
HWND
hwnd
,
LPCWSTR
text
)
void
CDECL
X11DRV_SetWindowText
(
HWND
hwnd
,
LPCWSTR
text
)
{
{
Window
win
;
Window
win
;
...
@@ -1492,7 +1492,7 @@ void X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
...
@@ -1492,7 +1492,7 @@ void X11DRV_SetWindowText( HWND hwnd, LPCWSTR text )
*
*
* Update the X state of a window to reflect a style change
* Update the X state of a window to reflect a style change
*/
*/
void
X11DRV_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
)
void
CDECL
X11DRV_SetWindowStyle
(
HWND
hwnd
,
INT
offset
,
STYLESTRUCT
*
style
)
{
{
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
DWORD
changed
;
DWORD
changed
;
...
@@ -1538,7 +1538,7 @@ void X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
...
@@ -1538,7 +1538,7 @@ void X11DRV_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
/***********************************************************************
/***********************************************************************
* DestroyWindow (X11DRV.@)
* DestroyWindow (X11DRV.@)
*/
*/
void
X11DRV_DestroyWindow
(
HWND
hwnd
)
void
CDECL
X11DRV_DestroyWindow
(
HWND
hwnd
)
{
{
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
...
@@ -1629,7 +1629,7 @@ static struct x11drv_win_data *create_desktop_win_data( Display *display, HWND h
...
@@ -1629,7 +1629,7 @@ static struct x11drv_win_data *create_desktop_win_data( Display *display, HWND h
/**********************************************************************
/**********************************************************************
* CreateDesktopWindow (X11DRV.@)
* CreateDesktopWindow (X11DRV.@)
*/
*/
BOOL
X11DRV_CreateDesktopWindow
(
HWND
hwnd
)
BOOL
CDECL
X11DRV_CreateDesktopWindow
(
HWND
hwnd
)
{
{
unsigned
int
width
,
height
;
unsigned
int
width
,
height
;
...
@@ -1671,7 +1671,7 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
...
@@ -1671,7 +1671,7 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
/**********************************************************************
/**********************************************************************
* CreateWindow (X11DRV.@)
* CreateWindow (X11DRV.@)
*/
*/
BOOL
X11DRV_CreateWindow
(
HWND
hwnd
)
BOOL
CDECL
X11DRV_CreateWindow
(
HWND
hwnd
)
{
{
if
(
hwnd
==
GetDesktopWindow
()
&&
root_window
!=
DefaultRootWindow
(
gdi_display
))
if
(
hwnd
==
GetDesktopWindow
()
&&
root_window
!=
DefaultRootWindow
(
gdi_display
))
{
{
...
@@ -1797,7 +1797,7 @@ XIC X11DRV_get_ic( HWND hwnd )
...
@@ -1797,7 +1797,7 @@ XIC X11DRV_get_ic( HWND hwnd )
/***********************************************************************
/***********************************************************************
* X11DRV_GetDC (X11DRV.@)
* X11DRV_GetDC (X11DRV.@)
*/
*/
void
X11DRV_GetDC
(
HDC
hdc
,
HWND
hwnd
,
HWND
top
,
const
RECT
*
win_rect
,
void
CDECL
X11DRV_GetDC
(
HDC
hdc
,
HWND
hwnd
,
HWND
top
,
const
RECT
*
win_rect
,
const
RECT
*
top_rect
,
DWORD
flags
)
const
RECT
*
top_rect
,
DWORD
flags
)
{
{
struct
x11drv_escape_set_drawable
escape
;
struct
x11drv_escape_set_drawable
escape
;
...
@@ -1850,7 +1850,7 @@ void X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
...
@@ -1850,7 +1850,7 @@ void X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
/***********************************************************************
/***********************************************************************
* X11DRV_ReleaseDC (X11DRV.@)
* X11DRV_ReleaseDC (X11DRV.@)
*/
*/
void
X11DRV_ReleaseDC
(
HWND
hwnd
,
HDC
hdc
)
void
CDECL
X11DRV_ReleaseDC
(
HWND
hwnd
,
HDC
hdc
)
{
{
struct
x11drv_escape_set_drawable
escape
;
struct
x11drv_escape_set_drawable
escape
;
...
@@ -1870,7 +1870,7 @@ void X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
...
@@ -1870,7 +1870,7 @@ void X11DRV_ReleaseDC( HWND hwnd, HDC hdc )
/***********************************************************************
/***********************************************************************
* SetCapture (X11DRV.@)
* SetCapture (X11DRV.@)
*/
*/
void
X11DRV_SetCapture
(
HWND
hwnd
,
UINT
flags
)
void
CDECL
X11DRV_SetCapture
(
HWND
hwnd
,
UINT
flags
)
{
{
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
...
@@ -1904,7 +1904,7 @@ void X11DRV_SetCapture( HWND hwnd, UINT flags )
...
@@ -1904,7 +1904,7 @@ void X11DRV_SetCapture( HWND hwnd, UINT flags )
/*****************************************************************
/*****************************************************************
* SetParent (X11DRV.@)
* SetParent (X11DRV.@)
*/
*/
void
X11DRV_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
void
CDECL
X11DRV_SetParent
(
HWND
hwnd
,
HWND
parent
,
HWND
old_parent
)
{
{
Display
*
display
=
thread_display
();
Display
*
display
=
thread_display
();
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
...
@@ -1939,7 +1939,7 @@ void X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
...
@@ -1939,7 +1939,7 @@ void X11DRV_SetParent( HWND hwnd, HWND parent, HWND old_parent )
*
*
* Set the X focus.
* Set the X focus.
*/
*/
void
X11DRV_SetFocus
(
HWND
hwnd
)
void
CDECL
X11DRV_SetFocus
(
HWND
hwnd
)
{
{
Display
*
display
=
thread_display
();
Display
*
display
=
thread_display
();
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
...
@@ -1968,7 +1968,7 @@ void X11DRV_SetFocus( HWND hwnd )
...
@@ -1968,7 +1968,7 @@ void X11DRV_SetFocus( HWND hwnd )
/***********************************************************************
/***********************************************************************
* WindowPosChanging (X11DRV.@)
* WindowPosChanging (X11DRV.@)
*/
*/
void
X11DRV_WindowPosChanging
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
void
CDECL
X11DRV_WindowPosChanging
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
RECT
*
visible_rect
)
const
RECT
*
window_rect
,
const
RECT
*
client_rect
,
RECT
*
visible_rect
)
{
{
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
...
@@ -1998,7 +1998,7 @@ void X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
...
@@ -1998,7 +1998,7 @@ void X11DRV_WindowPosChanging( HWND hwnd, HWND insert_after, UINT swp_flags,
/***********************************************************************
/***********************************************************************
* WindowPosChanged (X11DRV.@)
* WindowPosChanged (X11DRV.@)
*/
*/
void
X11DRV_WindowPosChanged
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
void
CDECL
X11DRV_WindowPosChanged
(
HWND
hwnd
,
HWND
insert_after
,
UINT
swp_flags
,
const
RECT
*
rectWindow
,
const
RECT
*
rectClient
,
const
RECT
*
rectWindow
,
const
RECT
*
rectClient
,
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
)
const
RECT
*
visible_rect
,
const
RECT
*
valid_rects
)
{
{
...
@@ -2111,7 +2111,7 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
...
@@ -2111,7 +2111,7 @@ void X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags,
/***********************************************************************
/***********************************************************************
* ShowWindow (X11DRV.@)
* ShowWindow (X11DRV.@)
*/
*/
UINT
X11DRV_ShowWindow
(
HWND
hwnd
,
INT
cmd
,
RECT
*
rect
,
UINT
swp
)
UINT
CDECL
X11DRV_ShowWindow
(
HWND
hwnd
,
INT
cmd
,
RECT
*
rect
,
UINT
swp
)
{
{
int
x
,
y
;
int
x
,
y
;
unsigned
int
width
,
height
,
border
,
depth
;
unsigned
int
width
,
height
,
border
,
depth
;
...
@@ -2161,7 +2161,7 @@ UINT X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
...
@@ -2161,7 +2161,7 @@ UINT X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
* This is not entirely correct, may need to create
* This is not entirely correct, may need to create
* an icon window and set the pixmap as a background
* an icon window and set the pixmap as a background
*/
*/
void
X11DRV_SetWindowIcon
(
HWND
hwnd
,
UINT
type
,
HICON
icon
)
void
CDECL
X11DRV_SetWindowIcon
(
HWND
hwnd
,
UINT
type
,
HICON
icon
)
{
{
Display
*
display
=
thread_display
();
Display
*
display
=
thread_display
();
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
...
@@ -2187,7 +2187,7 @@ void X11DRV_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
...
@@ -2187,7 +2187,7 @@ void X11DRV_SetWindowIcon( HWND hwnd, UINT type, HICON icon )
*
*
* Assign specified region to window (for non-rectangular windows)
* Assign specified region to window (for non-rectangular windows)
*/
*/
int
X11DRV_SetWindowRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
)
int
CDECL
X11DRV_SetWindowRgn
(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
redraw
)
{
{
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
...
@@ -2208,7 +2208,7 @@ int X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
...
@@ -2208,7 +2208,7 @@ int X11DRV_SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL redraw )
*
*
* Set transparency attributes for a layered window.
* Set transparency attributes for a layered window.
*/
*/
void
X11DRV_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
void
CDECL
X11DRV_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
DWORD
flags
)
{
{
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
hwnd
);
...
@@ -2228,7 +2228,7 @@ void X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
...
@@ -2228,7 +2228,7 @@ void X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
/**********************************************************************
/**********************************************************************
* X11DRV_WindowMessage (X11DRV.@)
* X11DRV_WindowMessage (X11DRV.@)
*/
*/
LRESULT
X11DRV_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
LRESULT
CDECL
X11DRV_WindowMessage
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
{
struct
x11drv_win_data
*
data
;
struct
x11drv_win_data
*
data
;
...
@@ -2289,7 +2289,7 @@ static BOOL is_netwm_supported( Display *display, Atom atom )
...
@@ -2289,7 +2289,7 @@ static BOOL is_netwm_supported( Display *display, Atom atom )
*
*
* Perform WM_SYSCOMMAND handling.
* Perform WM_SYSCOMMAND handling.
*/
*/
LRESULT
X11DRV_SysCommand
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
)
LRESULT
CDECL
X11DRV_SysCommand
(
HWND
hwnd
,
WPARAM
wparam
,
LPARAM
lparam
)
{
{
WPARAM
hittest
=
wparam
&
0x0f
;
WPARAM
hittest
=
wparam
&
0x0f
;
DWORD
dwPoint
;
DWORD
dwPoint
;
...
...
dlls/winex11.drv/x11drv.h
View file @
0a645959
...
@@ -733,18 +733,18 @@ extern void make_window_embedded( Display *display, struct x11drv_win_data *data
...
@@ -733,18 +733,18 @@ extern void make_window_embedded( Display *display, struct x11drv_win_data *data
extern
XContext
winContext
;
extern
XContext
winContext
;
extern
void
X11DRV_InitClipboard
(
void
);
extern
void
X11DRV_InitClipboard
(
void
);
extern
int
X11DRV_AcquireClipboard
(
HWND
hWndClipWindow
);
extern
int
CDECL
X11DRV_AcquireClipboard
(
HWND
hWndClipWindow
);
extern
void
X11DRV_ResetSelectionOwner
(
void
);
extern
void
X11DRV_ResetSelectionOwner
(
void
);
extern
void
X11DRV_SetFocus
(
HWND
hwnd
);
extern
void
CDECL
X11DRV_SetFocus
(
HWND
hwnd
);
extern
Cursor
X11DRV_GetCursor
(
Display
*
display
,
struct
tagCURSORICONINFO
*
ptr
);
extern
Cursor
X11DRV_GetCursor
(
Display
*
display
,
struct
tagCURSORICONINFO
*
ptr
);
extern
void
X11DRV_SetCursor
(
struct
tagCURSORICONINFO
*
lpCursor
);
extern
void
CDECL
X11DRV_SetCursor
(
struct
tagCURSORICONINFO
*
lpCursor
);
extern
BOOL
X11DRV_ClipCursor
(
LPCRECT
clip
);
extern
BOOL
CDECL
X11DRV_ClipCursor
(
LPCRECT
clip
);
extern
void
X11DRV_InitKeyboard
(
Display
*
display
);
extern
void
X11DRV_InitKeyboard
(
Display
*
display
);
extern
void
X11DRV_send_keyboard_input
(
WORD
wVk
,
WORD
wScan
,
DWORD
dwFlags
,
DWORD
time
,
extern
void
X11DRV_send_keyboard_input
(
WORD
wVk
,
WORD
wScan
,
DWORD
dwFlags
,
DWORD
time
,
DWORD
dwExtraInfo
,
UINT
injected_flags
);
DWORD
dwExtraInfo
,
UINT
injected_flags
);
extern
void
X11DRV_send_mouse_input
(
HWND
hwnd
,
DWORD
flags
,
DWORD
x
,
DWORD
y
,
extern
void
X11DRV_send_mouse_input
(
HWND
hwnd
,
DWORD
flags
,
DWORD
x
,
DWORD
y
,
DWORD
data
,
DWORD
time
,
DWORD
extra_info
,
UINT
injected_flags
);
DWORD
data
,
DWORD
time
,
DWORD
extra_info
,
UINT
injected_flags
);
extern
DWORD
X11DRV_MsgWaitForMultipleObjectsEx
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
timeout
,
extern
DWORD
CDECL
X11DRV_MsgWaitForMultipleObjectsEx
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
timeout
,
DWORD
mask
,
DWORD
flags
);
DWORD
mask
,
DWORD
flags
);
typedef
int
(
*
x11drv_error_callback
)(
Display
*
display
,
XErrorEvent
*
event
,
void
*
arg
);
typedef
int
(
*
x11drv_error_callback
)(
Display
*
display
,
XErrorEvent
*
event
,
void
*
arg
);
...
...
dlls/winex11.drv/x11drv_main.c
View file @
0a645959
...
@@ -689,7 +689,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
...
@@ -689,7 +689,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
*
*
* Returns the active status of the screen saver
* Returns the active status of the screen saver
*/
*/
BOOL
X11DRV_GetScreenSaveActive
(
void
)
BOOL
CDECL
X11DRV_GetScreenSaveActive
(
void
)
{
{
int
timeout
,
temp
;
int
timeout
,
temp
;
wine_tsx11_lock
();
wine_tsx11_lock
();
...
@@ -703,7 +703,7 @@ BOOL X11DRV_GetScreenSaveActive(void)
...
@@ -703,7 +703,7 @@ BOOL X11DRV_GetScreenSaveActive(void)
*
*
* Activate/Deactivate the screen saver
* Activate/Deactivate the screen saver
*/
*/
void
X11DRV_SetScreenSaveActive
(
BOOL
bActivate
)
void
CDECL
X11DRV_SetScreenSaveActive
(
BOOL
bActivate
)
{
{
int
timeout
,
interval
,
prefer_blanking
,
allow_exposures
;
int
timeout
,
interval
,
prefer_blanking
,
allow_exposures
;
static
int
last_timeout
=
15
*
60
;
static
int
last_timeout
=
15
*
60
;
...
...
dlls/winex11.drv/xinerama.c
View file @
0a645959
...
@@ -204,7 +204,7 @@ void xinerama_init( unsigned int width, unsigned int height )
...
@@ -204,7 +204,7 @@ void xinerama_init( unsigned int width, unsigned int height )
/***********************************************************************
/***********************************************************************
* X11DRV_GetMonitorInfo (X11DRV.@)
* X11DRV_GetMonitorInfo (X11DRV.@)
*/
*/
BOOL
X11DRV_GetMonitorInfo
(
HMONITOR
handle
,
LPMONITORINFO
info
)
BOOL
CDECL
X11DRV_GetMonitorInfo
(
HMONITOR
handle
,
LPMONITORINFO
info
)
{
{
int
i
=
monitor_to_index
(
handle
);
int
i
=
monitor_to_index
(
handle
);
...
@@ -225,7 +225,7 @@ BOOL X11DRV_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
...
@@ -225,7 +225,7 @@ BOOL X11DRV_GetMonitorInfo( HMONITOR handle, LPMONITORINFO info )
/***********************************************************************
/***********************************************************************
* X11DRV_EnumDisplayMonitors (X11DRV.@)
* X11DRV_EnumDisplayMonitors (X11DRV.@)
*/
*/
BOOL
X11DRV_EnumDisplayMonitors
(
HDC
hdc
,
LPRECT
rect
,
MONITORENUMPROC
proc
,
LPARAM
lp
)
BOOL
CDECL
X11DRV_EnumDisplayMonitors
(
HDC
hdc
,
LPRECT
rect
,
MONITORENUMPROC
proc
,
LPARAM
lp
)
{
{
int
i
;
int
i
;
...
...
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