Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
6dcdc578
Commit
6dcdc578
authored
May 18, 2017
by
Ulrich Sibiller
Committed by
Mike Gabriel
Aug 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Events.c: improve debugging output for FocusIn/Out
parent
ebfd8742
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
4 deletions
+56
-4
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+56
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
6dcdc578
...
@@ -292,6 +292,36 @@ void ProcessInputEvents(void)
...
@@ -292,6 +292,36 @@ void ProcessInputEvents(void)
mieqProcessInputEvents
();
mieqProcessInputEvents
();
}
}
#ifdef DEBUG
char
*
nxagentGetNotifyMode
(
int
mode
)
{
switch
(
mode
)
{
case
NotifyNormal
:
{
return
"NotifyNormal"
;
break
;
}
case
NotifyGrab
:
{
return
"NotifyGrab"
;
break
;
}
case
NotifyUngrab
:
{
return
"NotifyUngrab"
;
break
;
}
case
NotifyWhileGrabbed
:
{
return
"NotifyWhileGrabbed"
;
break
;
}
}
return
"Unknown"
;
}
#endif
#ifdef DEBUG_TREE
#ifdef DEBUG_TREE
/*
/*
...
@@ -1530,8 +1560,18 @@ FIXME: Don't enqueue the KeyRelease event if the key was
...
@@ -1530,8 +1560,18 @@ FIXME: Don't enqueue the KeyRelease event if the key was
{
{
WindowPtr
pWin
;
WindowPtr
pWin
;
#ifdef TEST
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentDispatchEvents: Going to handle new FocusIn event.
\n
"
);
fprintf
(
stderr
,
"%s: Going to handle new FocusIn event [0x%x] mode: [%s]
\n
"
,
__func__
,
X
.
xfocus
.
window
,
nxagentGetNotifyMode
(
X
.
xfocus
.
mode
));
{
XlibWindow
w
;
int
revert_to
;
XGetInputFocus
(
nxagentDisplay
,
&
w
,
&
revert_to
);
fprintf
(
stderr
,
"%s: (FocusIn): Event win [0x%x] Focus owner [0x%x] nxagentDefaultWindows[0] [0x%x]
\n
"
,
__func__
,
X
.
xfocus
.
window
,
w
,
nxagentDefaultWindows
[
0
]);
}
#else
#ifdef TEST
fprintf
(
stderr
,
"%s: Going to handle new FocusIn event
\n
"
,
__func__
);
#endif
#endif
#endif
/*
/*
...
@@ -1567,13 +1607,25 @@ FIXME: Don't enqueue the KeyRelease event if the key was
...
@@ -1567,13 +1607,25 @@ FIXME: Don't enqueue the KeyRelease event if the key was
#endif
#endif
nxagentGrabPointerAndKeyboard
(
NULL
);
nxagentGrabPointerAndKeyboard
(
NULL
);
}
}
/* else
{
#ifdef DEBUG
fprintf(stderr, "%s: (FocusIn): ungrabbing\n", __func__);
#endif
nxagentUngrabPointerAndKeyboard(NULL);
}
*/
}
}
break
;
break
;
}
}
case
FocusOut
:
case
FocusOut
:
{
{
#ifdef TEST
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentDispatchEvents: Going to handle new FocusOut event.
\n
"
);
fprintf
(
stderr
,
"%s: Going to handle new FocusOut event [0x%x] mode: [%s]
\n
"
,
__func__
,
X
.
xfocus
.
window
,
nxagentGetNotifyMode
(
X
.
xfocus
.
mode
));
#else
#ifdef TEST
fprintf
(
stderr
,
"%s: Going to handle new FocusOut event.
\n
"
,
__func__
);
#endif
#endif
#endif
if
(
X
.
xfocus
.
detail
!=
NotifyInferior
)
if
(
X
.
xfocus
.
detail
!=
NotifyInferior
)
...
...
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