Commit graph

22 commits

Author SHA1 Message Date
lbonn
853c8c9af3 Merge remote-tracking branch 'upstream/next' into wayland 2022-07-16 12:37:31 +02:00
lbonn
1e8c22b4a0 Merge remote-tracking branch 'upstream/next' into wayland 2022-04-17 11:19:36 +02:00
lbonn
396b13f5a8 wayland: quick fix for changing height
We use the surface size of a fullscreen layer to calculate screen size.
But when height is recomputed and given as a percentage, this definition
becomes self-referencing.

Do a quick fix by caching the monitor resolution.
2022-02-05 13:13:17 +01:00
lbonn
70efa84f9b Merge remote-tracking branch 'upstream/next' into wayland 2021-10-25 20:14:21 +02:00
Jakub Jirutka
e963c3174a [Wayland] Implement partial support for offset properties on window
...using zwlr_layer_surface_v1::set_margin. It's only partial because
surface margin has effect only when the the window is located on edge of
the screen, not in center. Also the anchor property is not implemented,
the anchor point is always the edge of the window corresponding to the
location property.
2021-10-16 12:54:27 +02:00
Jakub Jirutka
7ce8c8584b Remove unused/surplus xcb-related includes
Includes in the rofi code base are a complete mess; there are many
needless includes and many files rely on transitive includes.

I used include-what-you-use tool to find them. There are much more,
I cherry picked only suggestions relevant to the goal - allow building
rofi without XCB dependencies.

This doesn't break X11 support and it can be upstreamed (after rebasing
and removing changes in wayland-stuff).
2021-09-30 21:48:44 +02:00
lbonn
6baa463264 Merge commit '954fc728b29d3c63a09a84870f29b57640062966' into wayland
Formatting changes only
2021-09-06 13:01:37 +02:00
lbonn
deb9330a0d Merge commit '1a1dc7282f5ed010af874398b5b3d70ea7cda8e8' into wayland 2021-09-06 13:00:57 +02:00
lbonn
7d4c5e8bd9 Run indenter 2020-11-25 19:10:26 +01:00
lbonn
cef94af6e1 Merge remote-tracking branch 'upstream/next' into wayland 2020-09-29 21:10:56 +02:00
lbonn
2e1e362fd3 Fix fullscreen in wayland mode
Fixes #6
2020-09-02 20:51:10 +02:00
lbonn
1f828cb2c5 Fix font configuration on wayland
Fixes #9
2020-09-02 16:21:14 +02:00
lbonn
bd9b5e8bf4 Do not crash when no buffer in pool
Was causing segfaults when window content updates too fast.
2020-09-02 16:19:49 +02:00
lbonn
33fbefdb8d Account for no active view state in various callbacks 2020-09-02 16:19:44 +02:00
lbonn
d3e96f2762 Run indenter 2020-09-02 16:03:49 +02:00
lbonn
04d2a7a73d wayland: High DPI support 2020-07-24 19:30:02 +02:00
lbonn
17b4265a5f Put most of view implementation in common 2020-07-24 19:30:02 +02:00
lbonn
8e53896bbd Avoid some indirections 2020-07-24 19:30:02 +02:00
lbonn
183b6b618e Factorize some view code 2020-07-24 19:30:02 +02:00
lbonn
98a9635173 Make xcb and wayland implementations coexist 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