16 Commits

Author SHA1 Message Date
lbonn
93ad86da10 [Wayland] Fix touchpad scrolling
Magic values were determined empirically...

Fixes #134
2024-06-07 00:14:29 +02:00
lbonn
d8ba203f6e [Wayland] Handle clipboard pasting more securely
Only receive clipboard offers when pasting instead of storing the data
indefinitely.

This is also more performant by default as it is not doing unnecessary
work.
2024-03-06 10:19:24 +01:00
lbonn
37b8e9fb99 [Wayland] Fix axis events handling
This was very buggy, we were counting the events twice...

* always use pointer frame, it's available since v5
* drop axis handler
* use axis_discrete or axis_120 (v >= 8) instead
* fail on some protocol minimum version checks
* simplify output protocol version check

Fixes #120
2024-03-01 11:27:45 +01:00
lbonn
d53738170c [Wayland] Inhibit compositor shortcuts
... with the dedicated wayland protocol.

This way, rofi can re-use compositor bindings. The canonical example is
window switching with Alt-Tab.
2024-02-27 14:09:18 +01:00
Aleksei Bavshin
b88dddd1a1 [Wayland] Compositor-side cursors via cursor-shape-v1 2024-01-08 16:08:01 +01:00
Aleksei Bavshin
8f259ce9b0 [Wayland] Cursor types support 2024-01-08 16:08:01 +01:00
Aleksei Bavshin
5bc2f09241 Re-indent Wayland sources with clang-format 2024-01-07 14:02:17 +01:00
Aleksei Bavshin
53d99c49ad [Wayland] Support wl_output version 4.
- Double-buffer the properties.
 - Fetch name, geometry and transform properties - we need these to
   calculate DPI and to implement `monitor` configuration field.
2024-01-05 17:10:52 +01:00
lbonn
7c79169309 Wayland: fix wayland-only mode again 2023-09-24 01:57:11 +02:00
MoetaYuko
0b223c16f3 Wayland: Apply scaling to cursor surface
Loading cursor theme and creating cursor surface are postponed to
wayland_pointer_enter because we don't know the display scale in the
early wayland_display_setup.

Partially fixes #45
2023-07-23 14:10:10 +02:00
lbonn
2a68677b6a Initial clipboard support for wayland
Using wl_data and primary_selection protocols
2021-09-06 15:34:53 +02:00
lbonn
6baa463264 Merge commit '954fc728b29d3c63a09a84870f29b57640062966' into wayland
Formatting changes only
2021-09-06 13:01:37 +02:00
lbonn
d3e96f2762 Run indenter 2020-09-02 16:03:49 +02:00
lbonn
c4bd599aec Move wayland stuff around 2020-07-24 19:30:02 +02:00
lbonn
97ea1c6d0b Continue work on wayland mode
- Fix mouse support
- Handle key repeats
- Positioning
- Fix periodic count updates
2020-07-24 19:30:02 +02:00
lbonn
7d94413675 Display something on wayland with layer shell
Based on sardemff7 previous wayland attempt
2020-07-24 19:30:02 +02:00