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
b2af0c68
Commit
b2af0c68
authored
Nov 17, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard: make nxagentInitClipboard return a Boolean
parent
fa7fb749
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+8
-4
Clipboard.h
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
+1
-1
Window.c
nx-X11/programs/Xserver/hw/nxagent/Window.c
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
b2af0c68
...
...
@@ -2062,7 +2062,11 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
}
}
int
nxagentInitClipboard
(
WindowPtr
pWin
)
/*
* Initialize the clipboard
* Returns: True for success else False
*/
Bool
nxagentInitClipboard
(
WindowPtr
pWin
)
{
Window
iWindow
=
nxagentWindow
(
pWin
);
...
...
@@ -2111,7 +2115,7 @@ int nxagentInitClipboard(WindowPtr pWin)
fprintf
(
stderr
,
"%s: PANIC! Could not create NX_CUT_BUFFER_SERVER atom
\n
"
,
__func__
);
#endif
return
-
1
;
return
False
;
}
#ifdef TEST
...
...
@@ -2208,7 +2212,7 @@ int nxagentInitClipboard(WindowPtr pWin)
"Could not create NX_CUT_BUFFER_CLIENT atom.
\n
"
,
__func__
);
#endif
return
-
1
;
return
False
;
}
}
...
...
@@ -2225,5 +2229,5 @@ int nxagentInitClipboard(WindowPtr pWin)
}
#endif
return
1
;
return
True
;
}
nx-X11/programs/Xserver/hw/nxagent/Clipboard.h
View file @
b2af0c68
...
...
@@ -47,7 +47,7 @@ extern XFixesAgentInfoRec nxagentXFixesInfo;
* data with the X server.
*/
extern
int
nxagentInitClipboard
(
WindowPtr
pWindow
);
extern
Bool
nxagentInitClipboard
(
WindowPtr
pWindow
);
/*
* Called whenever a client or a window is
...
...
nx-X11/programs/Xserver/hw/nxagent/Window.c
View file @
b2af0c68
...
...
@@ -2802,7 +2802,7 @@ Bool nxagentReconnectAllWindows(void *p0)
fprintf
(
stderr
,
"nxagentReconnectAllWindows: All windows reconfigured.
\n
"
);
#endif
if
(
nxagentInitClipboard
(
screenInfo
.
screens
[
0
]
->
root
)
==
-
1
)
if
(
!
nxagentInitClipboard
(
screenInfo
.
screens
[
0
]
->
root
)
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentReconnectAllWindows: WARNING! Couldn't initialize the clipboard.
\n
"
);
...
...
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