albertony
357e0ccc7e
Configurable drop directory
2020-12-10 00:08:42 +01:00
Povilas Kanapickas
2da6cb3a51
Merge pull request #969 from albertony/profile_dir
...
Improvements to custom profile dir option
2020-12-09 23:55:56 +02:00
Povilas Kanapickas
ce31584a6b
Merge pull request #980 from whot/wip/strip-trailing-whitespace
...
Remove trailing whitespaces
2020-12-09 23:54:44 +02:00
Peter Hutterer
1474f04f53
Remove an unreachable preprocessor directive
...
cmake sets HAVE_DPMS_PROTOTYPES unconditionally to 1 if we have the dpms
headers. So code inside HAVE_X11_EXTENSIONS_DPMS_H never needs to check for
it.
And since there's only one place that cared for this, we can remove the define
in cmake as well.
2020-12-09 14:39:13 +10:00
Peter Hutterer
f3eb89121d
Move the XTest check to cmake
...
Where the ifdef was checked, the alternative was a compiler error. We can
shortcut that process and just fail in cmake where the header is not found.
2020-12-09 14:39:09 +10:00
Peter Hutterer
38390f9b88
Undef X_DISPLAY_MISSING
...
As of f815f9840d
several years ago nothing sets
this #define anywhere anymore.
2020-12-09 14:37:10 +10:00
Peter Hutterer
0dbedd31dc
Remove trailing whitespaces
...
Many tools strip trailing whitespaces by default, so after editing a file with
whitespace errors we end up with a bunch of unrelated hunks that need to be
reverted locally.
This could be fixed by configuring each tool to not do this (at least for the
barrier repo), or, simpler, we just sed the problem away and make barrier
whitespace-compliant.
sed commands run:
sed -i 's/[ \t]\+$//' **/*.(cpp|h) **/*CMakeLists.txt
Verified with git diff --ignore-space-change, this shows the empty diff.
2020-12-09 14:02:28 +10:00
albertony
01a78a4d3a
Do not store path to ImmuneKeys.txt before --profile-dir is considered
2020-12-05 01:09:41 +01:00
James Le Cuirot
1418196af1
Rename TEST_ENV macro to BARRIER_TEST_ENV
...
As requested in #846 .
2020-08-22 19:25:35 +01:00
Povilas Kanapickas
7dbfa63a63
Merge pull request #847 from chewi/getenv
...
Replace all instances of C's getenv with C++'s std::getenv
2020-08-22 21:20:30 +03:00
James Le Cuirot
7aa110475e
Replace all instances of C's getenv with C++'s std::getenv
2020-08-22 19:05:24 +01:00
Tomoya Tanjo
4aefd64add
Add missing comma
2020-08-12 18:33:32 +09:00
Tomoya Tanjo
0fdcf8b225
Add key mappings for `Kana`, `Eisu` and `Muhenkan`
2020-08-12 16:20:29 +09:00
Michael Zimmermann
7452b64482
add support for keyboard backlight media keys
...
I've tested this with a german Apple Magic Keyboard with Numeric Keypad (Space Gray)
connected to a non-Apple Linux Laptop running Arch Linux.
keycode 237 (keysym 0x1008ff06, XF86KbdBrightnessDown)
keycode 238 (keysym 0x1008ff05, XF86KbdBrightnessUp)
2020-08-01 13:28:48 +02:00
Povilas Kanapickas
0f29c7716d
Merge pull request #656 from galkinvv/fix-win10-cpu-usage-spikes
...
Fixes high cpu usage spikes on win10
2020-06-05 00:30:22 +03:00
GeorgH93
64a9320d61
Fix build on Windows
2020-06-03 15:48:44 +02:00
Dom Rodriguez
b373d8eda9
Merge pull request #679 from p12tic/x11-fix-event-wait-race-condition
...
XWindowsEventQueueBuffer: Fix delays when waiting for new events
2020-05-31 00:07:14 +01:00
Povilas Kanapickas
5eac13a969
Use noexcept instead of exception specifications
2020-05-30 23:35:27 +03:00
Dom Rodriguez
5d0f6e6f73
Merge pull request #719 from p12tic/tests
...
Fix building of tests
2020-05-30 21:14:08 +01:00
Povilas Kanapickas
13a0359c58
tests: Fix crash in XWindowsKeyStateTests
2020-05-30 22:41:25 +03:00
Povilas Kanapickas
5eafd30de4
lib/platform: Use std::string directly instead of String typedef
2020-05-30 21:46:49 +03:00
Vasily Galkin
95f2a840be
Windows 8+: make waiting for messages correspond to emptiness check
...
Fixes high cpu usage spikes on win10.
When queue was containing messages of only non-QS_POSTMESSAGE type the
"while (m_buffer->isEmpty())" busy-looped in EventQueue::getEvent
since isEmpty was true (checked only QS_POSTMESSAGE message type),
but waitForEvent returned immediately (checked more message types).
Investigation shows that the difference was introduced in
https://github.com/debauchee/barrier/commit/dbfb04a6e
to fix a problem with bad behaviour of GetQueueStatus
Researching showed that a similar problem was fixed in Qt,
and the solution was
"pass different flags to GetQueueStatus depending on version of windows"
https://bugreports.qt.io/browse/QTBUG-29097
So this patch makes changes to a barrier non-GUI core similar to Qt fix.
2020-05-29 14:09:48 +03:00
Povilas Kanapickas
722b7d6cc4
XWindowsEventQueueBuffer: Fix delays when waiting for new events
...
QLength() may return 0 even if there are events pending because they
need to be read from the display socket in order to become visible. We
must use XPending() which will poll the socket if QLength() == 0.
2020-05-20 22:11:14 +03:00
Keegan Quinn
3d832fd728
Cast values to fix build errors on OS X 10.11.
2019-11-24 12:40:13 -08:00
Daniel Seither
937326bf4f
OSXDragView: Get rid of uninitialized variable warning
2019-11-19 12:04:29 +01:00
Casey Barton
69a65e4725
Merged mouse drift fix from synergy-core
2019-09-03 13:24:46 -04:00
Evan Maddock
0cd2e6bb6c
Use Windows helper function to check for Windows version
...
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2019-08-06 17:02:37 -04:00
Evan Maddock
00c18b4c92
Used the wrong key button by accident
...
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2019-08-06 15:23:22 -04:00
Evan Maddock
9f15b1bcf2
Reimplement patch for horizontal scrolling and extra mouse buttons
...
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net>
2019-08-05 21:59:43 -04:00
Chun Wang
0f5cdecf51
Fix #232 MACOS serious config file errors - hotkeys totally broken
2019-06-14 12:22:56 -07:00
Moron
03f9009d10
Fix #204 modifier keys not working in remote desktop on MacOS
2018-12-28 17:26:51 +01:00
Monika Kairaityte
14a7ca0848
Fix tests wrapper
2018-11-21 17:39:33 -05:00
Monika Kairaityte
51118014b1
x11: Wrap platform functions in XWindowsEventQueueBuffer class
2018-11-12 23:09:27 -05:00
Monika Kairaityte
2c32270d49
x11: Wrap platform functions in XWindowsKeyState class
2018-11-12 23:09:27 -05:00
Monika Kairaityte
624a718f2d
x11: Wrap platform functions in XWindowsClipboard class
2018-11-12 23:09:27 -05:00
Monika Kairaityte
ce3e8243a9
x11: Wrap platform functions in XWindowsScreenSaver class
2018-11-12 23:09:27 -05:00
Monika Kairaityte
be45440e84
x11: Wrap platform functions in an interface that can be mocked later
2018-11-12 23:09:27 -05:00
walker0643
53ee9c7803
Merge pull request #64 from p12tic/osx-server-jumpy-scrolling
...
Improve precision of grabbed scroll events on OSX server
2018-06-30 16:40:10 -04:00
Povilas Kanapickas
76c39aaf4e
Accumulate scrolls less than supported scroll on XWindows
...
This fixes barrier case #67 and synergy case #5670 .
2018-06-21 00:50:08 +03:00
Povilas Kanapickas
a645e9a296
Improve precision of grabbed scroll events on OSX server
...
This is barrier issue #63 , synergy issue #5672 .
2018-06-21 00:13:40 +03:00
walker0643
f4301a7618
fix usage of m_pname and rename to m_exename
2018-05-12 17:32:26 -04:00
walker0643
9e7792e2ae
add comment re C++17 to MSWindowsUtil.cpp
2018-04-01 14:57:22 -04:00
walker0643
767188799e
add desktop name to DEBUG output. when is desktop ever NOT "Default" ?
2018-04-01 13:59:14 -04:00
walker0643
d81054ab6e
remove some stale code and put windows service logfile in a better spot
2018-03-29 21:41:30 -04:00
walker0643
451bd72b30
MSWindowsWatchdog checks active desktop without external call to syntool
2018-03-29 16:32:51 -04:00
walker0643
c16fd089f6
old personal and profile directory functions now wrap the new implementations
2018-03-29 16:12:45 -04:00
walker0643
3389a980ea
remove bogus check for logonui.exe. it was causing false-positives for the need to elevate
2018-03-13 18:04:29 -04:00
walker0643
5b31036cdc
fix bad logic in XWindowsScreen.cpp
2018-03-03 12:57:13 -05:00
walker0643
06d5080b42
reimplement immune keys
2018-02-23 21:31:05 -05:00
walker0643
0e5ed7a305
clean up the hook management code
2018-02-23 20:56:12 -05:00