Commit Graph

102 Commits

Author SHA1 Message Date
tt2468
00c7e6dfb2
Move X11 error handler registration to before screen sets (#62)
If X11 throws an error during screen config get/set, the default error
handler at the time will be one which causes a program exit. This
splits the error handler registration in xevent into its own call,
allowing us to register our error handler earlier on. This results in
the safe error handling logic actually being called instead of a full
program exit.
2024-03-27 21:38:33 +01:00
Miroslav Šedivý
3dbcc41795 upload drop to config. 2023-11-24 10:44:24 +01:00
Miroslav Šedivý
b40c0778c8 file chooser dialog diabled by default. 2023-11-24 10:39:09 +01:00
Miroslav Šedivý
4da7869e70
Add Xorg modifiers (#57)
* implement additional modifiers to xorg.

* xorg modifiers to API.

* update modifiers api & add ws.

* scroll pos rename to delta and add ctrl key.
2023-09-11 16:34:57 +02:00
Miroslav Šedivý
ea5517b270
Xorg input driver (#53)
* add xf86 input driver.

* cleanup.

* rewrite to unix socket PoC.

* add input rebuild.

* lint & docs.

* add input driver struct.

* comments, lint, socket name from config.

* add touch events to webrtc.

* switch to uint32.

* misc update logging & linting,

* fix screen size

* set touchscreen as core pointer.

* add touch to ws control.

* SendCoreEvents.

* extract to own xinput folder.

* add debounce.

* switch pressure to uint8.

* check buffer size.

* send touch events with system init.
2023-08-17 16:14:59 +02:00
Miroslav Šedivý
c70c8217de add unminimize. 2023-04-24 22:19:48 +02:00
Miroslav Šedivý
f8b128e1e9
Custom sizes with XRandR (#25)
* xserver dummy with RandR.

* update.

* remove screen configurations from xorg.

* screen size cannot be nil anymore.

* use predefined screen configurations.

* use screen configurations.

* fix error.

* remove comment.
2023-02-14 21:18:47 +01:00
Miroslav Šedivý
c793ff1ff6 kataras/go-events@v0.0.3 Once workaround. 2022-09-12 21:19:21 +02:00
Miroslav Šedivý
7d5ec0190a add button events to control WebSocket. 2022-07-28 12:43:31 +02:00
Miroslav Šedivý
babddacbf3
Go generics and changes in v1.18 (#5)
* ArrayIn to use generics.

* interface{} -> any.
2022-07-28 12:20:20 +02:00
Miroslav Šedivý
3cd59b9f30 rename module name from gitlab to github. 2022-07-14 22:10:41 +02:00
Miroslav Šedivý
d5425ea457 clipboard set for control paste. 2022-05-03 19:57:31 +00:00
Miroslav Šedivý
8593d2d0fd move shared code to pkg. 2022-03-20 11:43:00 +01:00
Miroslav Šedivý
94c17e9a42 rename module to gitlab.com/demodesk/neko/server. 2022-03-20 11:27:41 +01:00
Miroslav Šedivý
0d6335ebcd fileChooserDialog use keypress. 2022-01-30 01:23:05 +01:00
Miroslav Šedivý
b261217cbe add KeyPress func. 2022-01-30 01:22:07 +01:00
Miroslav Šedivý
5c05d1009b add keysymdef generator. 2022-01-30 01:20:26 +01:00
Miroslav Šedivý
e45bd7098f replace chan struct{}. 2021-10-04 14:40:20 +02:00
Miroslav Šedivý
d46c5d9d30 desktop module use shutdown close. 2021-09-13 23:50:16 +02:00
Miroslav Šedivý
d7671942a6 code fmt change. 2021-09-02 21:37:24 +02:00
Miroslav Šedivý
f18ae2b972 add waitgroups. 2021-09-02 00:00:56 +02:00
Miroslav Šedivý
c2fe224562 audit errors and warnings. 2021-09-01 23:10:06 +02:00
Miroslav Šedivý
343b0c562a common errors as variable. 2021-08-29 17:09:13 +02:00
Miroslav Šedivý
01c0f269ee use defer for ticker. 2021-08-19 21:19:02 +02:00
Miroslav Šedivý
9176fe3782 cgo import not only for linux. 2021-06-28 18:10:48 +02:00
Miroslav Šedivý
ec18775e26 change error messages punctuation. 2021-04-24 21:37:43 +02:00
Miroslav Šedivý
45e85c8864 use exact XkbKeysymToKeycode from tigervnc. 2021-04-12 13:25:10 +00:00
Miroslav Šedivý
cb17046aee lint fix. 2021-04-11 19:06:56 +02:00
Miroslav Šedivý
cfdcafc611 xorg fix naming & KeyCode type. 2021-04-11 16:48:59 +02:00
Miroslav Šedivý
6b2b6594cd fix xorg headers file. 2021-04-11 16:42:57 +02:00
Miroslav Šedivý
7d06f33ff0 kecode to keysym respecting modifiers. 2021-04-10 01:10:14 +02:00
Miroslav Šedivý
5acfae72be Revert "workaround for "Keyboard bugs <> → >>"." 2021-04-10 01:07:19 +02:00
Miroslav Šedivý
536bab14e5 workaround for "Keyboard bugs <> → >>". 2021-04-08 00:08:21 +02:00
Miroslav Šedivý
5d00e0bdbd fix cursor index out of range error. 2021-03-25 11:59:57 +01:00
Miroslav Šedivý
d24cea3535 desktop display from env. 2021-03-11 17:44:49 +01:00
Miroslav Šedivý
663270b0f5 cursor position bypass desktop module. 2021-02-28 18:50:32 +01:00
Miroslav Šedivý
9d60468aea xevent DRY, expose emitter. 2021-02-28 17:22:55 +01:00
Miroslav Šedivý
8f142e4b91 GetCursorImage returns image structure. 2021-02-25 14:03:57 +01:00
Miroslav Šedivý
dc29f71b0c keysym as uint32. 2021-02-23 21:25:55 +01:00
Miroslav Šedivý
8f2639412d format code. 2021-02-21 00:41:04 +01:00
Miroslav Šedivý
5310acfbf0 implement xorg GetCursorPosition. 2021-02-17 21:55:11 +01:00
Miroslav Šedivý
45679f1b86 format Go source code. 2021-02-14 14:40:17 +01:00
Miroslav Šedivý
c9b2c93fb8 cursor image/position from WebRTC. 2021-02-13 18:25:40 +01:00
Miroslav Šedivý
f22922191a broadcast cursor position via WebSockets. 2021-02-11 18:36:27 +01:00
Miroslav Šedivý
e8286dec96 xorg: filter out all irrelevant screen rates. 2021-02-10 18:56:20 +01:00
Miroslav Šedivý
91f1727723 lint remove whitespaces. 2021-02-02 18:28:32 +01:00
Miroslav Šedivý
7c305b5a27 clipboard lint fix. 2021-02-01 18:29:39 +01:00
Miroslav Šedivý
b9df65c216 xevent dialog window based on name. 2021-01-31 15:01:46 +01:00
Miroslav Šedivý
546cd608c3 join plain text and rich text to one struct. 2021-01-29 20:05:13 +01:00
Miroslav Šedivý
5c9a57ee91 xclip minor changes + image. 2021-01-29 00:03:22 +01:00