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
e6db7e93
Commit
e6db7e93
authored
Oct 10, 2011
by
Reinhard Tartler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imported nxagent-3.4.0-9.tar.gz
Summary: Imported nxagent-3.4.0-9.tar.gz Keywords: Imported nxagent-3.4.0-9.tar.gz into Git repository
parent
b7494f08
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
69 deletions
+30
-69
CHANGELOG
nx-X11/programs/Xserver/hw/nxagent/CHANGELOG
+8
-0
Events.c
nx-X11/programs/Xserver/hw/nxagent/Events.c
+16
-15
Screen.c
nx-X11/programs/Xserver/hw/nxagent/Screen.c
+0
-51
Screen.h
nx-X11/programs/Xserver/hw/nxagent/Screen.h
+2
-3
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+4
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/CHANGELOG
View file @
e6db7e93
ChangeLog:
nxagent-3.4.0-9
- Fixed TR06H02362. No icon was swown in the task bar.
- Fixed keyboard grab in fullscreen mode.
- Fixed compiler warnings.
nxagent-3.4.0-8
- Grab the keyboard in fullscreen mode on EnterNotify only if mode is
...
...
nx-X11/programs/Xserver/hw/nxagent/Events.c
View file @
e6db7e93
...
...
@@ -1728,14 +1728,11 @@ FIXME: Don't enqueue the KeyRelease event if the key was
nxagentLastEnteredWindow
=
NULL
;
}
if
(
nxagentPointerAndKeyboardGrabbed
==
1
)
if
(
X
.
xcrossing
.
window
==
nxagentDefaultWindows
[
0
]
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
&&
X
.
xcrossing
.
mode
==
NotifyNormal
)
{
if
(
X
.
xcrossing
.
window
==
nxagentDefaultWindows
[
0
]
&&
X
.
xcrossing
.
detail
!=
NotifyInferior
&&
X
.
xcrossing
.
mode
==
NotifyNormal
)
{
nxagentUngrabPointerAndKeyboard
(
&
X
);
}
nxagentUngrabPointerAndKeyboard
(
&
X
);
}
if
(
X
.
xcrossing
.
detail
!=
NotifyInferior
)
...
...
@@ -2123,14 +2120,8 @@ FIXME: Don't enqueue the KeyRelease event if the key was
if
(
nxagentWMIsRunning
)
{
if
(
nxagentOption
(
Fullscreen
))
{
nxagentMinimizeFromFullScreen
(
pScreen
);
}
else
{
XIconifyWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
0
],
DefaultScreen
(
nxagentDisplay
));
}
XIconifyWindow
(
nxagentDisplay
,
nxagentDefaultWindows
[
0
],
DefaultScreen
(
nxagentDisplay
));
}
}
...
...
@@ -3791,6 +3782,11 @@ void nxagentGrabPointerAndKeyboard(XEvent *X)
int
resource
;
if
(
nxagentPointerAndKeyboardGrabbed
==
1
)
{
return
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentGrabPointerAndKeyboard: Grabbing pointer and keyboard with event at [%p].
\n
"
,
(
void
*
)
X
);
...
...
@@ -3856,6 +3852,11 @@ void nxagentUngrabPointerAndKeyboard(XEvent *X)
{
unsigned
long
now
;
if
(
nxagentPointerAndKeyboardGrabbed
==
0
)
{
return
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentUngrabPointerAndKeyboard: Ungrabbing pointer and keyboard with event at [%p].
\n
"
,
(
void
*
)
X
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.c
View file @
e6db7e93
...
...
@@ -287,57 +287,6 @@ void nxagentSetPixmapFormats(ScreenInfo *screenInfo)
}
}
void
nxagentMinimizeFromFullScreen
(
ScreenPtr
pScreen
)
{
XUnmapWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
);
}
void
nxagentMaximizeToFullScreen
(
ScreenPtr
pScreen
)
{
if
(
nxagentIpaq
)
{
XMapWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
);
}
else
{
/*
FIXME: We'll chech for ReparentNotify and LeaveNotify events after XReparentWindow()
in order to avoid the session window is iconified.
We could avoid the sesssion window is iconified when a LeaveNotify event is received,
so this check would be unnecessary.
*/
struct
timeval
timeout
;
int
i
;
XEvent
e
;
XReparentWindow
(
nxagentDisplay
,
nxagentFullscreenWindow
,
RootWindow
(
nxagentDisplay
,
DefaultScreen
(
nxagentDisplay
)),
0
,
0
);
for
(
i
=
0
;
i
<
100
&&
nxagentWMIsRunning
;
i
++
)
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentSwitchFullscreen: WARNING! Going to wait for the ReparentNotify event.
\n
"
);
#endif
if
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
ReparentNotify
,
&
e
))
{
break
;
}
XSync
(
nxagentDisplay
,
0
);
timeout
.
tv_sec
=
0
;
timeout
.
tv_usec
=
50
*
1000
;
nxagentWaitEvents
(
nxagentDisplay
,
&
timeout
);
}
XMapRaised
(
nxagentDisplay
,
nxagentFullscreenWindow
);
while
(
XCheckTypedWindowEvent
(
nxagentDisplay
,
nxagentFullscreenWindow
,
LeaveNotify
,
&
e
));
}
}
Bool
nxagentMagicPixelZone
(
int
x
,
int
y
)
{
return
(
x
>=
nxagentOption
(
Width
)
-
1
&&
y
<
1
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Screen.h
View file @
e6db7e93
...
...
@@ -60,6 +60,8 @@ extern short nxagentShadowUid;
void
nxagentSetScreenInfo
(
ScreenInfo
*
screenInfo
);
void
nxagentSetPixmapFormats
(
ScreenInfo
*
screenInfo
);
void
nxagentPrintGeometry
();
extern
Window
nxagentDefaultWindows
[
MAXSCREENS
];
extern
Window
nxagentInputWindows
[
MAXSCREENS
];
extern
Window
nxagentScreenSaverWindows
[
MAXSCREENS
];
...
...
@@ -85,9 +87,6 @@ extern int nxagentBitsPerPixel(int depth);
void
nxagentSetScreenSaverTime
(
void
);
void
nxagentMinimizeFromFullScreen
(
ScreenPtr
pScreen
);
void
nxagentMaximizeToFullScreen
(
ScreenPtr
pScreen
);
Bool
nxagentMagicPixelZone
(
int
x
,
int
y
);
Bool
nxagentResizeScreen
(
ScreenPtr
pScreen
,
int
width
,
int
height
,
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
e6db7e93
...
...
@@ -768,10 +768,14 @@ void nxagentSwitchFullscreen(ScreenPtr pScreen, Bool switchOn)
if
(
switchOn
==
1
)
{
nxagentFullscreenWindow
=
nxagentDefaultWindows
[
pScreen
->
myNum
];
nxagentGrabPointerAndKeyboard
(
NULL
);
}
else
{
nxagentFullscreenWindow
=
None
;
nxagentUngrabPointerAndKeyboard
(
NULL
);
}
}
...
...
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