Mój kot cały dzień nie wychodził z kuchni, siedział na kuchence gazowej i miauczał. Byłam przerażona, gdy zrozumiałam powód jego dziwnego zachowania.
Tego ranka mój kot zachowywał się inaczej niż zwykle. zwykle śpi do południa, leniwie przebierając łapami we śnie, ale tego dnia od rana był niespokojny.
Nie opuszczał kuchni przez cały dzień. Za każdym razem, gdy tam wchodziłam, siedział na kuchence raz głośno i natarczywie miauczał, a raz zaczynał syczeć, wpatrując się w ścianę.
Kilka razy brałam go na ręce i wynosiłam z kuchni, myśląc, iż po prostu się bawi lub szuka uwagi. Ale gdy tylko się odwróciłam, już znowu tam był, patrząc na mnie szeroko otwartymi oczami, jakby próbował coś powiedzieć.
Najpierw pomyślałam, iż jest głodny. Nasypałam mu karmy, wyciągnęłam ulubione smakołyki, ale choćby ich nie tknął. To było dziwne mój kot nigdy nie odmawiał przekąsek.
Pod wieczór moje samopoczucie się pogorszyło. Czułam się wyczerpana, miałam zawroty głowy i mdłości. Myślałam, iż to przez zmęczenie albo ciśnienie. Ale kot stawał się coraz bardziej nerwowy biegał po kuchni, znów wskakiwał na kuchenkę, miauczał tak głośno, iż zaczęło mnie to irytować.
W końcu zrozumiałam powód jego dziwnego zachowania i przeraziłam się. Gdy wieczorem sąsiTitle: Fixes to enable running the example on MacOS in Docker
username_0: As per https://github.com/username_1/rust-xcb/issues/51#issuecomment-834782161, it’s possible to get the example working on MacOS, but one has to replace the `apt` commands with the appropriate `brew` commands, and one has to `export PKG_CONFIG_PATH=/usr/local/opt/xcb-util/lib/pkgconfig` before running `cargo run`.openedrtbo/rust-xcb/README.md
## Examples
### Hello world
A simple example that draws „Hello world !” in a window.
„`console
$ cargo run –example hello_world
„`
### Window creation and events
A simple example that creates a window and print events.
„`console
$ cargo run –example window
„`
### Window with a Vulkan surface
Requires the `xcb-dl` feature to be enabled (enabled by default).
A simple example that creates a window and a Vulkan surface for it.
„`console
$ cargo run –example vulkan_window –features xcb-dl
„`
### Multi-threaded events
A simple example that creates a window and handles events in a separate thread.
„`console
$ cargo run –example threaded_window
„`
### Key symbols
A simple example that creates a window and prints key symbols and states.
„`console
$ cargo run –example keysyms
„`
### Multihead
A simple example that creates a window on each screen.
„`console
$ cargo run –example multi_head
„`
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions./README.md@@ -1,4 +1,30 @@
+
+## Running the example on MacOS in Docker
+
+To get the examples working on MacOS, first install and run Docker. Then install `xquartz` via:
+
+„`console
+$ brew install –cask xquartz
+„`
+
+After installing, open XQuartz (`open -a XQuartz`) and go to `Preferences > Security` and tick „Allow connections from network clients”. Then restart XQuartz.
+
+Then, in a terminal, run:
+
+„`console
+$ export DISPLAY=host.docker.internal:0
+„`
+
+Now, run the following to start a container and run the example inside it:
+
+„`console
+$ docker run -it –rm -e DISPLAY=$DISPLAY ubuntu:20.04
+$ apt update
+$ apt install -y libxcb1-dev libxcb-keysyms1-dev libxcb-util0-dev pkg-config x11-apps cargo
+$ git clone https://github.com/rtbo/rust-xcb && cd rust-xcb
+$ export PKG_CONFIG_PATH=/usr/local/opt/xcb-util/lib/pkgconfig
+$ cargo run –example hello_world
+„`
## Examples @@ -19,7 +45,7 @@
### Window with a Vulkan surface
-Requires the `xcb-dl` feature to be enabled (enabled by default).
+Requires the `xcb-dl` feature to be enabled (enabled by default).
A simple example that creates a window and a Vulkan surface for it.
„`consoleusername_1closedTrue










