Commit graph

4065 commits

Author SHA1 Message Date
lbonn
1d9819fe50 [Build] Fix deprecated format() in meson.build
In Wayland builds
2024-02-28 09:32:55 +01:00
lbonn
ccb8385d93 Merge remote-tracking branch 'upstream/next' into wayland 2024-02-28 09:31:31 +01:00
lbonn
0cec298f91 [Wayland] Make bindings inhibitor opt-in
Fixes #119
2024-02-28 09:29:04 +01:00
Qball Cow
f2c0f75fd2 [run] fix missing doxygen and add explanation. 2024-02-28 00:54:23 +01:00
Qball Cow
ee1b68aea6 [Run] When passing raw entry, pass it unquoted to history
fixes: #1951
2024-02-28 00:46:23 +01:00
Dave Davenport
eae65b2c07 Replace deprecated g_memdup by g_memdup2 2024-02-27 20:53:26 +01:00
Dave Davenport
3a97e0cb91 Replace deprecated by g_memdup to g_memdup2 2024-02-27 20:47:51 +01:00
Dave Davenport
1c41c36488 Bump glib version to 2.72 2024-02-27 20:46:34 +01:00
lbonn
aa193c3be6
[Build] Bump minimal meson version to 0.59.0 (#1947)
To remove some deprecated invocations.

0.47.0 (2018-07-02) -> 0.59.0 (2021-07-18)
2024-02-27 20:42:50 +01:00
lbonn
b847cb35f1 [Wayland] Update layer shell protocol
version 2 -> 5
2024-02-27 15:28:35 +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
lbonn
2ddef0f8ac [Wayland] Fix implicit deps in view-internal.h 2024-02-27 13:41:03 +01:00
lbonn
d2ad9fe828 [Wayland] Fix remaining non-strict C prototypes 2024-02-27 13:34:41 +01:00
lbonn
6c1a425d87 [WaylandWindow] Fix missing escaping 2024-02-27 13:31:02 +01:00
lbonn
54a2c45120 Merge remote-tracking branch 'upstream/next' into wayland 2024-02-27 13:29:54 +01:00
Aleksei Bavshin
cb6fd22118 [WaylandWindow] Unmap surface before sending activation request
Fixes lbonn/rofi#117
2024-02-26 19:32:40 +01:00
Qball Cow
43790b3eda Fix compiler warnings in window mode. 2024-02-25 23:39:05 +01:00
Qball Cow
2bbaa36b7a Fix some compiler warnings. 2024-02-25 23:33:22 +01:00
Qball Cow
058aac887f Small indent 2024-02-25 22:24:58 +01:00
Qball Cow
2d35397195 [RUN] shell escape command before processing it further. 2024-02-22 09:13:05 +01:00
Qball Cow
118e3a4df4 Revert "[config] By default escape run command."
This reverts commit 83ecbfe127.
2024-02-22 08:51:04 +01:00
Qball Cow
83ecbfe127 [config] By default escape run command. 2024-02-22 08:45:04 +01:00
lbonn
a4c8135533 Merge remote-tracking branch 'upstream/next' into wayland 2024-02-18 11:40:11 +01:00
Dave Davenport
1c8159c4c8 [DRun] Drun read url field from cache. 2024-02-18 11:35:39 +01:00
lbonn
f539a08222
[Build] Reduce amount of warnings (#1944)
* one unused parameter in recursivebrowser.c
* overlength strings are overly pedantic, modern compilers support large
  strings
* __FUNCTION__ creeped back in after #288
2024-02-16 18:41:07 +01:00
lbonn
070c830a92 Merge remote-tracking branch 'upstream/next' into wayland 2024-02-16 17:54:10 +01:00
Dave Davenport
3a5f95d69e [View] Don't use xcb surface to render to png, but create surface. 2024-02-16 13:36:21 +01:00
Jay Faulkner
9dbbf70468 Document ebuild for Gentoo in GURU
Linking to the GURU installation instructions in gentoo wiki instead
of enumerating them here to ensure it is less likely to bitrot.
2024-02-16 09:51:43 +01:00
Dave Davenport
831bddc68b [Box] When estimating height, set correct width on children
Issue: #1943
2024-02-15 09:13:37 +01:00
Qball Cow
13c2a61766 [ThreadPool] Sort items in the queue based on priority 2024-02-11 14:00:03 +01:00
Dave Davenport
3dc3e2d616 [Doc] Fix broken ``` guards. 2024-02-10 22:14:08 +01:00
Dave Davenport
dc43ee7d5b [Doc] Remove reddit link from config.yml. 2024-02-10 21:52:20 +01:00
Dave Davenport
c3023b399b [Doc] Clarify in build instructions what release to use. 2024-02-10 21:41:40 +01:00
Dave Davenport
1c7ff16add Add extra documentation issue template. 2024-02-10 21:36:27 +01:00
Igor
689d72f1dc
Fix typo in dynamic_themes.md (#1941)
Add missing "P" in "PREVIEW=true"
2024-01-29 16:29:52 +01:00
Dave Davenport
e74c2dc253 [DOC] Add explanation to PATTERN of brackets
Fixes: #1933
2024-01-09 11:46:25 +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
1592525edb [Wayland] Clear frame_cb after destroying resources 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
lbonn
2520c1ea16 [Wayland] Fix crash during layer shell destruction
Rofi will no longer crash if the current output is disconnected but
will respawn on the next output chosen by the compositor

Fixes #50
2024-01-06 16:30:19 +01:00
lbonn
813ef6a0cc [Doc] Update wayland limitations list 2024-01-05 17:46:05 +01:00
Aleksei Bavshin
8ea79da037 [Wayland] Implement config.dpi support.
The correct value of `config.dpi` is required to support physical units
in the themes (e.g. `mm` `in sidebar-v2`).
2024-01-05 17:10:52 +01:00
Aleksei Bavshin
ecdd2b2347 [Wayland] Support -m/-monitor <name>.
Defer layer surface creation until we read the configuration and know
the value of `config.monitor`. Wait for Wayland output details and try
to select a matching output by name.

Numeric values of -5..n are intentionally not supported, because
* the order of `wl_output` globals is not defined and may change between
  sessions
* the best we can do for -5..-1 is to let the compositor decide

`wid:` in theory can be emulated via `xdg-foreign`, but that requires a
regular `xdg_toplevel` instead of a layer surface.
2024-01-05 17:10:52 +01:00
Aleksei Bavshin
22ec839f27 [Wayland] Print monitor layout 2024-01-05 17:10:52 +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
Aleksei Bavshin
ad784f1f0d [Window] Set mode type for Wayland implementation.
Reformat to match other Mode definitions.

The `.type` is required after d27cee8.
2024-01-05 17:10:52 +01:00
Aleksei Bavshin
9e09a0729d Restrict WM detection to XCB backend
Fixes `rofi --help` after e409322
2024-01-05 17:10:52 +01:00
Dave Davenport
1a5e9e9af6 [Doc] Update manpage to clarify meta property. 2024-01-04 11:26:07 +01:00
Liao Junxuan
b29518f034 Enable pango markup for -window-format in wayland
Strings are already escaped when necessary. The x11 counterpart was implemented
in davatorium/rofi#1288.
2023-12-20 15:52:05 +01:00