Commit 6cb6ecd
committed
XCB: new platform (simplified X11)
Similar to the X11 platform plugin, but should work on bare-bone X11
server, without any special extensions or hardware requirements (e.g.
GL/DRI/XKB). Works over SSH X11Forwarding tunnel and inside VNC servers.
Downside: much higher CPU load than other platforms.
Compilation requires the libxcb-keysyms and libxcb-image libraries
Debian/Ubuntu: apt-get install libxcb-keysyms1-dev libxcb-image0-dev
Usage:
cog -P xcb https://example.com
cog -P xcb -O "[options]" https://example.com
[Options] is comma separated string with one or more of:
fullscreen - start in fullscreen mode (not multi-monitor aware,
default: not full screen).
x=N,y=N - open window in position X,Y on screen
width=N - set window width
height=N - set window height
(default for x,y,width,height: window manager decides)
fps=N - screen update frequency (default: 10).
higher values result in higher CPU load.
scroll-delta=N - amount of pixels to scrool with mouse-wheel
(default: 20).
rev-scroll-direction - reverse mouse-whell scroll direction.
ignore-keys - do not send keys to WebKit.
ignore-mouse-movement - do not send mouse movement events to WebKit.
ignore-mouse-buttons - do not send mouse button clicks and scroll
wheel to WebKit.
Example:
cog -P xcb -O "fullscreen,fps=20,scroll-delta=100" https://example.com1 parent b1e877c commit 6cb6ecd
File tree
3 files changed
+1150
-0
lines changed- platform/xcb
3 files changed
+1150
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments