Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7cc0e274
Commit
7cc0e274
authored
Nov 07, 1999
by
Juergen Lock
Committed by
Alexandre Julliard
Nov 07, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exec `wineclipsrv' not `wineclipsvr', and don't inherit wine's X
sockets to it (otherwise windows stay around when wine hangs).
parent
e5821587
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
clipboard.c
windows/x11drv/clipboard.c
+11
-3
No files found.
windows/x11drv/clipboard.c
View file @
7cc0e274
...
...
@@ -53,6 +53,7 @@
#include <X11/Xatom.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include "ts_xlib.h"
...
...
@@ -240,6 +241,13 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
int
dbgClasses
=
0
;
char
selMask
[
8
],
dbgClassMask
[
8
],
clearSelection
[
8
];
int
i
;
/* Don't inherit wine's X sockets to the wineclipsrv, otherwise
* windows stay around when you have to kill a hanging wine...
*/
for
(
i
=
3
;
i
<
256
;
++
i
)
fcntl
(
i
,
F_SETFD
,
1
);
sprintf
(
selMask
,
"%d"
,
selectionAcquired
);
...
...
@@ -257,10 +265,10 @@ BOOL X11DRV_CLIPBOARD_LaunchServer()
PROFILE_GetWineIniInt
(
"Clipboard"
,
"ClearAllSelections"
,
0
));
/* Exec the clipboard server passing it the selection and debug class masks */
execl
(
BINDIR
"/wineclips
vr"
,
"wineclipsvr
"
,
execl
(
BINDIR
"/wineclips
rv"
,
"wineclipsrv
"
,
selMask
,
dbgClassMask
,
clearSelection
,
NULL
);
execlp
(
"wineclips
vr"
,
"wineclipsvr
"
,
selMask
,
dbgClassMask
,
clearSelection
,
NULL
);
execl
(
"./windows/x11drv/wineclips
vr"
,
"wineclipsvr
"
,
execlp
(
"wineclips
rv"
,
"wineclipsrv
"
,
selMask
,
dbgClassMask
,
clearSelection
,
NULL
);
execl
(
"./windows/x11drv/wineclips
rv"
,
"wineclipsrv
"
,
selMask
,
dbgClassMask
,
clearSelection
,
NULL
);
/* Exec Failed! */
...
...
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