aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-06-20 12:58:04 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-06-21 22:34:28 +0200
commit65d29df13fc4c955ddf60a200d41d8be7283c505 (patch)
treef54ac7a19b646fbda079a14bccd1d0071a85480b /nx-X11/programs
parenteae0eff3aa5c8e3601677e8395fea72be231b554 (diff)
downloadnx-libs-65d29df13fc4c955ddf60a200d41d8be7283c505.tar.gz
nx-libs-65d29df13fc4c955ddf60a200d41d8be7283c505.tar.bz2
nx-libs-65d29df13fc4c955ddf60a200d41d8be7283c505.zip
Clipboard.c: Only take full clipboard clearing action if non-empty
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 85ef1ae16..09c7eb2c2 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -912,21 +912,21 @@ void nxagentHandleSelectionClearFromXServer(XEvent *X)
x.u.selectionClear.atom = CurrentSelections[index].selection;
sendEventToClient(lastSelectionOwner[index].client, &x);
- }
- /*
- * Set the root window with the NullClient as selection owner. Our
- * clients asking for the owner via XGetSelectionOwner() will get
- * these for an answer.
- */
- CurrentSelections[index].window = screenInfo.screens[0]->root->drawable.id;
- CurrentSelections[index].client = NullClient;
+ /*
+ * Set the root window with the NullClient as selection owner. Our
+ * clients asking for the owner via XGetSelectionOwner() will get
+ * this for an answer.
+ */
+ CurrentSelections[index].window = screenInfo.screens[0]->root->drawable.id;
+ CurrentSelections[index].client = NullClient;
- clearSelectionOwnerData(index);
+ clearSelectionOwnerData(index);
- setClientSelectionStage(index, SelectionStageNone);
+ setClientSelectionStage(index, SelectionStageNone);
- invalidateTargetCache(index);
+ invalidateTargetCache(index);
+ }
}
}