aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-11-17 23:14:17 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 23:36:02 +0100
commiteb51bcb6da690f15871a6d71a3d727d69088c449 (patch)
tree8a5b1332fbb484d0acef3c4da0d22177f38c1135 /nx-X11/programs/Xserver/hw
parent8574c233a601d7f864258ab06718e01c1eadc179 (diff)
downloadnx-libs-eb51bcb6da690f15871a6d71a3d727d69088c449.tar.gz
nx-libs-eb51bcb6da690f15871a6d71a3d727d69088c449.tar.bz2
nx-libs-eb51bcb6da690f15871a6d71a3d727d69088c449.zip
Clipboard.c: drop superflous variable
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 454cf1483..4e119d806 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -2113,8 +2113,6 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
*/
Bool nxagentInitClipboard(WindowPtr pWin)
{
- Window iWindow = nxagentWindow(pWin);
-
#ifdef DEBUG
fprintf(stderr, "%s: Got called.\n", __func__);
#endif
@@ -2141,7 +2139,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#endif
agentClipboardInitialized = False;
- serverWindow = iWindow;
+ serverWindow = nxagentWindow(pWin);
/*
* Local property to hold pasted data.
@@ -2165,10 +2163,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#ifdef TEST
fprintf(stderr, "%s: Setting owner of selection [%s][%d] on window 0x%x\n", __func__,
- "NX_CUT_BUFFER_SERVER", (int) serverCutProperty, iWindow);
+ "NX_CUT_BUFFER_SERVER", (int) serverCutProperty, serverWindow);
#endif
- XSetSelectionOwner(nxagentDisplay, serverCutProperty, iWindow, CurrentTime);
+ XSetSelectionOwner(nxagentDisplay, serverCutProperty, serverWindow, CurrentTime);
if (XQueryExtension(nxagentDisplay,
"XFIXES",
@@ -2186,7 +2184,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
for (int i = 0; i < nxagentMaxSelections; i++)
{
- XFixesSelectSelectionInput(nxagentDisplay, iWindow,
+ XFixesSelectSelectionInput(nxagentDisplay, serverWindow,
lastSelectionOwner[i].selection,
XFixesSetSelectionOwnerNotifyMask |
XFixesSelectionWindowDestroyNotifyMask |
@@ -2209,10 +2207,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
#ifdef TEST
fprintf(stderr, "%s: setting the ownership of %s to %lx"
" and registering for PropertyChangeMask events\n", __func__,
- validateString(XGetAtomName(nxagentDisplay, nxagentAtoms[10])), iWindow);
+ validateString(XGetAtomName(nxagentDisplay, nxagentAtoms[10])), serverWindow);
#endif
- XSetSelectionOwner(nxagentDisplay, nxagentAtoms[10], iWindow, CurrentTime);
+ XSetSelectionOwner(nxagentDisplay, nxagentAtoms[10], serverWindow, CurrentTime);
pWin -> eventMask |= PropertyChangeMask;
nxagentChangeWindowAttributes(pWin, CWEventMask);
}
@@ -2233,7 +2231,7 @@ Bool nxagentInitClipboard(WindowPtr pWin)
*/
if (lastSelectionOwner[i].client && lastSelectionOwner[i].window)
{
- XSetSelectionOwner(nxagentDisplay, lastSelectionOwner[i].selection, iWindow, CurrentTime);
+ XSetSelectionOwner(nxagentDisplay, lastSelectionOwner[i].selection, serverWindow, CurrentTime);
}
}
}