mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 22:25:53 +08:00
rebranding symless/synergy to debauchee/barrier
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* synergy -- mouse and keyboard sharing utility
|
||||
* barrier -- mouse and keyboard sharing utility
|
||||
* Copyright (C) 2012-2016 Symless Ltd.
|
||||
* Copyright (C) 2002 Chris Schoeneman
|
||||
*
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#include "platform/XWindowsUtil.h"
|
||||
|
||||
#include "synergy/key_types.h"
|
||||
#include "barrier/key_types.h"
|
||||
#include "mt/Thread.h"
|
||||
#include "base/Log.h"
|
||||
#include "base/String.h"
|
||||
@@ -1619,10 +1619,10 @@ XWindowsUtil::atomToString(Display* display, Atom atom)
|
||||
XWindowsUtil::ErrorLock lock(display, &error);
|
||||
char* name = XGetAtomName(display, atom);
|
||||
if (error) {
|
||||
return synergy::string::sprintf("<UNKNOWN> (%d)", (int)atom);
|
||||
return barrier::string::sprintf("<UNKNOWN> (%d)", (int)atom);
|
||||
}
|
||||
else {
|
||||
String msg = synergy::string::sprintf("%s (%d)", name, (int)atom);
|
||||
String msg = barrier::string::sprintf("%s (%d)", name, (int)atom);
|
||||
XFree(name);
|
||||
return msg;
|
||||
}
|
||||
@@ -1638,12 +1638,12 @@ XWindowsUtil::atomsToString(Display* display, const Atom* atom, UInt32 num)
|
||||
String msg;
|
||||
if (error) {
|
||||
for (UInt32 i = 0; i < num; ++i) {
|
||||
msg += synergy::string::sprintf("<UNKNOWN> (%d), ", (int)atom[i]);
|
||||
msg += barrier::string::sprintf("<UNKNOWN> (%d), ", (int)atom[i]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (UInt32 i = 0; i < num; ++i) {
|
||||
msg += synergy::string::sprintf("%s (%d), ", names[i], (int)atom[i]);
|
||||
msg += barrier::string::sprintf("%s (%d), ", names[i], (int)atom[i]);
|
||||
XFree(names[i]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user