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
223f5548
Commit
223f5548
authored
Feb 10, 2015
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wine Close Delay (108_nxagent_wine-close-delay.full.patch).
Wine close delay. Originally contributed by FreeNX team (dimbor).
parent
658d07e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
61 deletions
+30
-61
108_nxagent_wine-close-delay.full.patch
debian/patches/108_nxagent_wine-close-delay.full.patch
+0
-60
series
debian/patches/series
+0
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+30
-0
No files found.
debian/patches/108_nxagent_wine-close-delay.full.patch
deleted
100644 → 0
View file @
658d07e9
Description: Wine Close Delay
Wine close delay.
.
Originally contributed by FreeNX Team (dimbor).
Forwarded: not-yet
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -176,6 +176,14 @@
static int nxagentForceExposure(WindowPtr pWin, pointer ptr);
+/* by dimbor */
+typedef struct
+{
+ CARD32 state;
+ Window icon;
+}
+nxagentWMStateRec;
+
/*
* This is currently unused.
*/
@@ -1861,6 +1869,17 @@
nxagentAddConfiguredWindow(pWin, CWStackingOrder);
nxagentAddConfiguredWindow(pWin, CW_Shape);
+ /* add by dimbor */
+ if (nxagentOption(Rootless) && nxagentWindowTopLevel(pWin))
+ {
+ Atom prop = MakeAtom("WM_STATE", strlen("WM_STATE"), True);
+ nxagentWMStateRec wmState;
+ wmState.state = 1; /* NormalState */
+ wmState.icon = None;
+ if (ChangeWindowProperty(pWin, prop, prop, 32, 0, 2, &wmState, 1) != Success)
+ fprintf(stderr, "nxagentRealizeWindow: Additing WM_STATE fail.\n");
+ }
+
#ifdef SHAPE
/*
@@ -1907,6 +1926,17 @@
return True;
}
+ /* add by dimbor */
+ if (nxagentOption(Rootless) && nxagentWindowTopLevel(pWin))
+ {
+ Atom prop = MakeAtom("WM_STATE", strlen("WM_STATE"), True);
+ nxagentWMStateRec wmState;
+ wmState.state = 3; /* WithdrawnState */
+ wmState.icon = None;
+ if (ChangeWindowProperty(pWin, prop, prop, 32, 0, 2, &wmState, 1) != Success)
+ fprintf(stderr, "nxagentUnRealizeWindow: Changing WM_STATE failed.\n");
+ }
+
XUnmapWindow(nxagentDisplay, nxagentWindow(pWin));
return True;
debian/patches/series
View file @
223f5548
108_nxagent_wine-close-delay.full.patch
110_nxagent_createpixmap-bounds-check.full.patch
110_nxagent_createpixmap-bounds-check.full.patch
200_nxagent_check-binary-x2go-flavour.full.patch
200_nxagent_check-binary-x2go-flavour.full.patch
201_nxagent_set-x2go-icon-if-x2goagent-flavour.full.patch
201_nxagent_set-x2go-icon-if-x2goagent-flavour.full.patch
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
223f5548
...
@@ -176,6 +176,14 @@ static void nxagentReconfigureWindow(pointer, XID, pointer);
...
@@ -176,6 +176,14 @@ static void nxagentReconfigureWindow(pointer, XID, pointer);
static
int
nxagentForceExposure
(
WindowPtr
pWin
,
pointer
ptr
);
static
int
nxagentForceExposure
(
WindowPtr
pWin
,
pointer
ptr
);
/* by dimbor */
typedef
struct
{
CARD32
state
;
Window
icon
;
}
nxagentWMStateRec
;
/*
/*
* This is currently unused.
* This is currently unused.
*/
*/
...
@@ -1861,6 +1869,17 @@ Bool nxagentRealizeWindow(WindowPtr pWin)
...
@@ -1861,6 +1869,17 @@ Bool nxagentRealizeWindow(WindowPtr pWin)
nxagentAddConfiguredWindow
(
pWin
,
CWStackingOrder
);
nxagentAddConfiguredWindow
(
pWin
,
CWStackingOrder
);
nxagentAddConfiguredWindow
(
pWin
,
CW_Shape
);
nxagentAddConfiguredWindow
(
pWin
,
CW_Shape
);
/* add by dimbor */
if
(
nxagentOption
(
Rootless
)
&&
nxagentWindowTopLevel
(
pWin
))
{
Atom
prop
=
MakeAtom
(
"WM_STATE"
,
strlen
(
"WM_STATE"
),
True
);
nxagentWMStateRec
wmState
;
wmState
.
state
=
1
;
/* NormalState */
wmState
.
icon
=
None
;
if
(
ChangeWindowProperty
(
pWin
,
prop
,
prop
,
32
,
0
,
2
,
&
wmState
,
1
)
!=
Success
)
fprintf
(
stderr
,
"nxagentRealizeWindow: Adding WM_STATE fail.
\n
"
);
}
#ifdef SHAPE
#ifdef SHAPE
/*
/*
...
@@ -1907,6 +1926,17 @@ Bool nxagentUnrealizeWindow(pWin)
...
@@ -1907,6 +1926,17 @@ Bool nxagentUnrealizeWindow(pWin)
return
True
;
return
True
;
}
}
/* add by dimbor */
if
(
nxagentOption
(
Rootless
)
&&
nxagentWindowTopLevel
(
pWin
))
{
Atom
prop
=
MakeAtom
(
"WM_STATE"
,
strlen
(
"WM_STATE"
),
True
);
nxagentWMStateRec
wmState
;
wmState
.
state
=
3
;
/* WithdrawnState */
wmState
.
icon
=
None
;
if
(
ChangeWindowProperty
(
pWin
,
prop
,
prop
,
32
,
0
,
2
,
&
wmState
,
1
)
!=
Success
)
fprintf
(
stderr
,
"nxagentUnRealizeWindow: Changing WM_STATE failed.
\n
"
);
}
XUnmapWindow
(
nxagentDisplay
,
nxagentWindow
(
pWin
));
XUnmapWindow
(
nxagentDisplay
,
nxagentWindow
(
pWin
));
return
True
;
return
True
;
...
...
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