mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
(+xSelectionNotify:): Don't call XGetAtomName() if the property is None.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@17941 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d6f7a6bf4d
commit
a140438d5c
2 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-10-20 16:20 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Tools/xpbs.m (+xSelectionNotify:): Don't call XGetAtomName()
|
||||
if the property is None.
|
||||
|
||||
2003-10-19 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/xlib/XGBitmap.m: Cache color lookup to reduce use
|
||||
|
|
12
Tools/xpbs.m
12
Tools/xpbs.m
|
@ -397,12 +397,18 @@ static NSString *xWaitMode = @"XPasteboardWaitMode";
|
|||
else
|
||||
{
|
||||
char *sel_name = XGetAtomName(xDisplay, xEvent->selection);
|
||||
char *pro_name = XGetAtomName(xDisplay, xEvent->property);
|
||||
char *pro_name;
|
||||
|
||||
if (xEvent->property == None)
|
||||
pro_name = NULL;
|
||||
else
|
||||
pro_name = XGetAtomName(xDisplay, xEvent->property);
|
||||
|
||||
NSDebugLLog(@"Pbs", @"Selection (%s) notify - '%s'.", sel_name,
|
||||
pro_name);
|
||||
pro_name? pro_name : "None");
|
||||
XFree(sel_name);
|
||||
XFree(pro_name);
|
||||
if (pro_name)
|
||||
XFree(pro_name);
|
||||
}
|
||||
|
||||
[o xSelectionNotify: xEvent];
|
||||
|
|
Loading…
Reference in a new issue