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
fa8b7281
Commit
fa8b7281
authored
Apr 16, 2000
by
Stephane Lussier
Committed by
Alexandre Julliard
Apr 16, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support switching the keyboard layout with WINE running.
parent
11dee2b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
1 deletion
+32
-1
ts_xlib.h
include/ts_xlib.h
+1
-0
X11_calls
tsx11/X11_calls
+1
-0
ts_xlib.c
tsx11/ts_xlib.c
+11
-0
event.c
windows/x11drv/event.c
+19
-1
No files found.
include/ts_xlib.h
View file @
fa8b7281
...
...
@@ -106,6 +106,7 @@ extern int TSXQueryColor(Display*, Colormap, XColor*);
extern
int
TSXQueryKeymap
(
Display
*
,
char
*
);
extern
int
TSXQueryPointer
(
Display
*
,
Window
,
Window
*
,
Window
*
,
int
*
,
int
*
,
int
*
,
int
*
,
unsigned
int
*
);
extern
int
TSXQueryTree
(
Display
*
,
Window
,
Window
*
,
Window
*
,
Window
**
,
unsigned
int
*
);
extern
int
TSXRefreshKeyboardMapping
(
XMappingEvent
*
);
extern
int
TSXResetScreenSaver
(
Display
*
);
extern
int
TSXRestackWindows
(
Display
*
,
Window
*
,
int
);
extern
int
TSXSendEvent
(
Display
*
,
Window
,
int
,
long
,
XEvent
*
);
...
...
tsx11/X11_calls
View file @
fa8b7281
...
...
@@ -111,6 +111,7 @@ XQueryPointer
XQueryTree
XReconfigureWMWindow
XRectInRegion
XRefreshKeyboardMapping
XResetScreenSaver
XResourceManagerString
XRestackWindows
...
...
tsx11/ts_xlib.c
View file @
fa8b7281
...
...
@@ -1005,6 +1005,17 @@ int TSXQueryTree(Display* a0, Window a1, Window* a2, Window* a3, Window** a4,
return
r
;
}
int
TSXRefreshKeyboardMapping
(
XMappingEvent
*
a0
)
{
int
r
;
TRACE
(
"Call XRefreshKeyboardMapping
\n
"
);
EnterCriticalSection
(
&
X11DRV_CritSection
);
r
=
XRefreshKeyboardMapping
(
a0
);
LeaveCriticalSection
(
&
X11DRV_CritSection
);
TRACE
(
"Ret XRefreshKeyboardMapping
\n
"
);
return
r
;
}
int
TSXResetScreenSaver
(
Display
*
a0
)
{
int
r
;
...
...
windows/x11drv/event.c
View file @
fa8b7281
...
...
@@ -110,6 +110,7 @@ static void EVENT_PropertyNotify( XPropertyEvent *event );
static
void
EVENT_ClientMessage
(
HWND
hWnd
,
XClientMessageEvent
*
event
);
static
void
EVENT_MapNotify
(
HWND
pWnd
,
XMapEvent
*
event
);
static
void
EVENT_UnmapNotify
(
HWND
pWnd
,
XUnmapEvent
*
event
);
static
void
EVENT_MappingNotify
(
XMappingEvent
*
event
);
#ifdef HAVE_LIBXXSHM
static
void
EVENT_ShmCompletion
(
XShmCompletionEvent
*
event
);
...
...
@@ -323,7 +324,8 @@ static void EVENT_ProcessEvent( XEvent *event )
}
if
(
!
hWnd
&&
event
->
xany
.
window
!=
X11DRV_GetXRootWindow
()
&&
event
->
type
!=
PropertyNotify
)
&&
event
->
type
!=
PropertyNotify
&&
event
->
type
!=
MappingNotify
)
ERR
(
"Got event %s for unknown Window %08lx
\n
"
,
event_names
[
event
->
type
],
event
->
xany
.
window
);
else
...
...
@@ -462,6 +464,10 @@ static void EVENT_ProcessEvent( XEvent *event )
EVENT_UnmapNotify
(
hWnd
,
(
XUnmapEvent
*
)
event
);
break
;
case
MappingNotify
:
EVENT_MappingNotify
(
(
XMappingEvent
*
)
event
);
break
;
default:
WARN
(
"Unprocessed event %s for hwnd %04x
\n
"
,
event_names
[
event
->
type
],
hWnd
);
...
...
@@ -1860,6 +1866,18 @@ void EVENT_UnmapNotify( HWND hWnd, XUnmapEvent *event )
WIN_ReleaseWndPtr
(
pWnd
);
}
/***********************************************************************
* EVENT_MappingNotify
*/
static
void
EVENT_MappingNotify
(
XMappingEvent
*
event
)
{
TSXRefreshKeyboardMapping
(
event
);
/* reinitialize Wine-X11 driver keyboard table */
X11DRV_KEYBOARD_Init
();
}
/**********************************************************************
* X11DRV_EVENT_SetInputMethod
*/
...
...
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