mirror of
https://github.com/wez/wezterm.git
synced 2024-11-24 07:46:59 +03:00
4ef20480c5
This was honestly a PITA because of its complexity. The `clipboard` crate (now dropped as a dep) didn't support wayland, so I looked at the `smithay-clipboard` crate, which caused all of my input to become laggy just by enabling it--even without actually copying or pasting! Both of those crates try to hide a number of details of working with the clipboard from the embedding application, but that works against our window crate implementation, so I decided to integrate it into the window crate using Futures so that the underlying IPC timing and potential for the peer to flake out are not completely hidden. This first commit removes the SystemClipboard type from wezterm and instead bridges the window crate clipboard to the term crate Clipboard concept. The clipboard must be associated with a window in order to function at all on Wayland, to we place the get/set operations in WindowOps. This commit effectively breaks the keyboard on the other window environments; will fix those up in follow on commits.
44 lines
916 B
Bash
Executable File
44 lines
916 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Centos may not have lsb_release installed
|
|
if test -e /etc/centos-release || test -e /etc/fedora-release; then
|
|
yum install -y \
|
|
make \
|
|
g++ \
|
|
fontconfig-devel \
|
|
openssl-devel \
|
|
libxcb-devel \
|
|
libxkbcommon-devel \
|
|
libxkbcommon-x11-devel \
|
|
wayland-devel \
|
|
mesa-libEGL-devel \
|
|
xcb-util-keysyms-devel \
|
|
xcb-util-wm-devel
|
|
exit $?
|
|
fi
|
|
|
|
case `lsb_release -ds` in
|
|
Ubuntu*|Debian*|PureOS*)
|
|
apt-get install -y \
|
|
bsdutils \
|
|
cmake \
|
|
fakeroot \
|
|
libegl1-mesa-dev \
|
|
libssl-dev \
|
|
libfontconfig1-dev \
|
|
libxcb-ewmh-dev \
|
|
libxcb-icccm4-dev \
|
|
libxcb-keysyms1-dev \
|
|
libxcb-shm0-dev \
|
|
libxcb-xkb-dev \
|
|
libxkbcommon-dev \
|
|
libxkbcommon-x11-dev \
|
|
xdg-utils \
|
|
xorg-dev
|
|
;;
|
|
*)
|
|
echo "Please contribute the commands to install the deps"
|
|
echo "For `lsb_release -ds`"
|
|
;;
|
|
esac
|