155 Commits
Author SHA1 Message Date
NSPC911 08e50ca2cd window: Replace MouseCursor with cursor-icon from winit (#8100) 2026-08-27 13:51:50 +02:00
xtqqczze 572f7496e4 deps: upgrade clipboard-win to remove winapi as transitive dep (#8102) 2026-08-27 11:51:46 +02:00
parthandWez Furlong 4d6b83585f feat: Added support for window blur on KDE Wayland (#6905)
* added config flag for kde blur

* added deps for wayland-protocol-plasma

* added kde background blur

* keeping inner functions together

* updated docs with kde_blur

* added kde_blur ss to docs

* removed unneeded dep

* removed redundant default value for bool

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* updated default for kde_blur in config

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update docs/config/lua/config/kde_window_background_blur.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update blur logic in os/wayland/window.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* simplified blur_manager creation in wayland/state.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic paths

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic path

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* put the right screenshot for kde_blur

* fixed build issues

* reverted window/src/os/windows/window.rs

* fixed formatting

* Update window/src/os/windows/window.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-04 06:29:27 -07:00
Jay Madden c0b29fef24 feat(macos): add support for titlebar background matching theme background on macos
closes: #6558
2025-03-08 17:13:37 -07:00
Wez Furlong edcdefda3b workspace-ify the deps
There have been a couple of attempts at this in the past, which
had some usability warts in what I recall as an earlier, less
useful set of features overall.

Whether that was collective misunderstanding at the time, or things
have gotten better since then, now is a good time to adopt the workspace
dep syntax, because wezterm has many crates to keep on top of, and
automation like dependabot can't see a lot of them.

This will help to manage the versions of deps in wezterm centrally.

Let's try this out in CI: the Cargo.lock changes here are minimal
(eliminated a second version of base64 from one crate, terminal_size
from another, and removed an explicit dep on serde_derive) so
hopefully this sails through on !linux.

closes: https://github.com/wezterm/wezterm/pull/6668
2025-02-12 09:43:36 -07:00
Wez Furlong 11c4b11669 s,wez/wezterm,wezterm/wezterm,
I moved the repo to an org of its own. Update various things
to reference the new location.
2025-02-07 13:08:01 -07:00
Anthony M. Cook 0983ae90d6 Mark wayland-backend as optional dependency (#6342)
* Mark wayland-backend as optional dependency

Fixes #6315

https://github.com/wez/wezterm/commit/09ac8c53777ac6de61b757292f5dc4da80322bbd introduced the `wayland-backend` dependency, but did not mark it as optional, this prevented the build from successfully completing on X11 systems without Wayland development libraries.
2024-10-31 23:51:12 -07:00
Wez Furlong da3df95114 deps: glium to 0.35
Not sure that this has any impact on us, as the changelog says
that the only change upstream was that glutin was updated.
We don't use glium with glutin, so probably a NOP?
2024-09-15 08:17:51 -07:00
Wez Furlong 09ac8c5377 wgpu -> 22.1
Tested on X11 and Wayland via weston and seems to work

closes: https://github.com/wez/wezterm/pull/5814
2024-09-15 05:56:56 -07:00
Thayne McCombs ccb7270dd7 Upgrade smithay-client-toolkit to 0.19
closes: https://github.com/wez/wezterm/pull/5781
2024-07-13 10:49:45 -07:00
Wez Furlong 9bfcb69139 deps: metrics -> 0.23
refs: https://github.com/wez/wezterm/pull/5512
2024-06-07 17:53:46 -07:00
Wez Furlong ee78f86293 deps: update macos specific packages 2024-05-13 14:10:09 -07:00
Wez Furlong 6ad0da98d8 deps: remove smol-potat, update futures-lite
smol-potat hasn't had updates in 4 years and was bifurcating some
big deps.  It wasn't necessary; it was trivially easy to replace
with smol::block_on with no meaningful increase in boilerplate,
and the result is much more understandable in purpose and effect.
2024-05-13 11:43:10 -07:00
Wez Furlong 1ca5e6cc90 deps: upgrade smol to 2.0 2024-05-13 10:26:29 -07:00
Wez Furlong 421ce4f0e1 deps: update zbus 2024-05-13 09:56:11 -07:00
Wez Furlong c6ffe92853 deps: remove a duplicate version of libloading 2024-05-13 09:45:45 -07:00
Wez Furlong 6c890c3995 update metrics to latest version (0.22) 2024-05-13 09:41:12 -07:00
Wez Furlong 281b6e2740 deps: update metrics to a more recent version
This isn't the latest version of metrics; it's just a more recent
version that allows us to remove a duplicate ahash dependency from the
build graph.
2024-05-13 09:41:11 -07:00
Wez Furlong 55de5b0e4e update xcb-imdkit to pick up more from_raw_parts related fixes
refs: https://github.com/wez/xcb-imdkit-rs/pull/1
2024-05-11 07:12:06 -07:00
Pi-Cla ee61e61e4f [PATCH] Fix various cargo audit errors
closes: https://github.com/wez/wezterm/pull/5206
2024-05-04 22:47:57 -07:00
V 7c77f407fa Update smithay-client-toolkit to v0.18
Also updates:
- wayland-{client,protocols} to v0.31
- wayland-egl to v0.32
2024-05-04 16:09:36 -07:00
Wez Furlong e5ac32f297 Revert SCTK changes
panics on startup under weston with no obvious fix.

This reverts commit 3938d1a7db.
This reverts commit aab3835f1a.
This reverts commit 0c97ace3cb.

refs: https://github.com/wez/wezterm/pull/5044
2024-03-25 09:35:07 -07:00
Thayne McCombs aab3835f1a Update SCTK to 0.18 2024-03-25 08:59:28 -07:00
Wez Furlong 36ff6d5f44 deps: update glium 2024-02-06 16:52:02 -07:00
Timmy Xiao fb35683e0a Don't use xkbcommon feature in smithay so we can use modifiers 2024-02-03 14:56:08 -07:00
Timmy Xiao c66b1855fc Implement pressing a key 2024-02-03 14:55:29 -07:00
Timmy Xiao 3eaba4e3d6 Nuke Wayland 2024-02-03 14:52:42 -07:00
Wez Furlong 9bae5b4158 switch wholesale to my fork xcb-imdkit, as it is not actively maintained
My branch includes my own fixes, as well as this PR:

refs: https://github.com/H-M-H/xcb-imdkit-rs/pull/3

which should enable this PR that's been blocked on it for a while:
refs: https://github.com/wez/wezterm/pull/2056
2024-01-23 17:50:04 -07:00
Wez Furlong f6aba4b0d6 deps: update zbus 2024-01-23 17:14:47 -07:00
Wez Furlong 201fc1bf8e deps: update xcb 2024-01-23 17:12:16 -07:00
Wez Furlong 33647b029c deps: update x11 2024-01-23 17:04:26 -07:00
Wez Furlong a263fd38f1 deps: update xkbcommon 2024-01-23 17:02:32 -07:00
Wez Furlong bf07f6de0f Revert "deps: update to wgpu 0.19"
This reverts commit b4c5dc746d.
This reverts commit 3214610f16.
This reverts commit 3ec1cfba73.
This reverts commit 47590bbedc.
This reverts commit ea88dca296.
This reverts commit c269230b74.
This reverts commit 1484e2a673.
This reverts commit 6fd45c1223.
This reverts commit 9acc2ae6c5.

refs: https://github.com/wez/wezterm/issues/4825
refs: https://github.com/wez/wezterm/issues/4826
2024-01-21 09:51:58 -07:00
Wez Furlong 9acc2ae6c5 deps: update to wgpu 0.19 2024-01-20 12:09:52 -07:00
Haochen Tong 44c914c230 wayland: update SCTK to fix startup on newer compositors 2023-09-20 11:22:04 -07:00
Wez Furlong 6ccbc723ba wezterm.gui.screens: add optional effective_dpi field
This commit implements it for Windows. The other systems
report None for now.
2023-08-06 09:18:40 -07:00
Wez Furlong 33187d0e79 macos: fonts: use full list of user fallback languages
The hope was that this would find more fonts, but it doesn't actually
help for this case.

refs: https://github.com/wez/wezterm/issues/4099
2023-08-05 17:33:59 -07:00
Wez Furlong d1d4db20be cargo update
Transitive deps now require rust 1.71, so update for that, as well
as some other minor changes required by transitive deps.
2023-07-30 20:09:15 -07:00
Wez Furlong f901dfbf68 deps: tiny-skia -> 0.11 2023-07-09 18:28:48 -07:00
Wez Furlong 95e44f2199 Fix dbus value parsing issue by upgrading zbus/zvariant crate
Error message I've been seeing the past couple of days:

Unable to resolve appearance using xdg-desktop-portal: invalid value:
string "()", expected at least one field signature between `(` and `)`:
invalid value: string "()", expected at least one field signature
between `(` and `)`
2023-05-30 06:27:29 -07:00
Wez Furlong 7e2b7ca84d deps: update tiny-skia
closes: https://github.com/wez/wezterm/pull/3794
2023-05-28 20:18:00 -07:00
Ye Sijun c154eb2d8a reimpl and remove clipboard_macos
Signed-off-by: Ye Sijun <junnplus@gmail.com>
2023-05-07 11:05:55 -07:00
Wez Furlong 26090da81e deps: tiny-skia -> 0.9 2023-04-24 09:13:44 -07:00
Wez Furlong fd5c6dceb1 window: use a shorter timeout for xdg portal reads
A user reported this:

08:47:13.372  DEBUG  window::os::x11::connection        > Unable to
   resolve appearance using xdg-desktop-portal: Read:
   org.freedesktop.DBus.Error.TimedOut: Failed to activate service
   'org.freedesktop.portal.Desktop': timed out
   (service_start_timeout=120000ms)

which is an issue with their xdg-portal service.

Rather than have wezterm block for 2 minutes on startup, we give it
1 second, and log the issue as a warning.
2023-02-08 09:19:28 -07:00
Wez Furlong 1fad5b5249 deps: sctk -> 0.16 2023-02-04 07:49:30 -07:00
Wez Furlong 890bff7faf macos: add version info to system name 2023-01-10 18:58:35 -07:00
Wez Furlong b224aa1b56 macOS: add MenuBar
This took a decent amount of effort to thread through with context;
wrappers around NSMenu and NSMenuItem are added to reduce some of
the objc usability warts, and an additional NSObject wrapper is
added to help copy the KeyAssignment from the existing list
of command palette commands and associate it with the menu item.

When a menu item is selected, macOS will walk through the responder
chain and look for a responder that responds to the selector associated
with the menu item.  In practice that means that our window/view class
will be tried first, and then later, our app delegate will be tried.

This commit implements routing from both of these: the window case
routes to the associated TermWindow and drops into the existing
perform_key_assignment method.

In case there is no window (not currently possible, but will be
in the future), the app delegate also has a placeholder for dispatching
key assignments, although it will only be able to perform a subset
of the possible actions.

A couple of things to note:

* Items aren't smart enough to disable themselves or adjust their
  caption based on the context. To make that work, we either need
  to recreate the entire menubar when any possible context changes
  (doable, but feels heavy), or we need to assign a target to each
  menu item and implement a validation handler on that target.
  That seemed to mess with the responder chain when I briefly
  experimented with it.

* There's some disabled code to add a Services menu. It is disabled
  because when it is enabled, accessing either Services or Help
  from the menu bar sends the process into a busy loop somewhere
  in macOS's internals.  It's unclear what it is unhappy with.

* No keyboard accelerators are associated with the menubar yet.
  That needs some thought, as they would essentially become global
  keyboard shortcuts and take precedence over the shortcuts defined
  for other keys in the config.  This feels like it should be something
  that the user has control over, so there needs to be something to
  allow that before we go ahead and wire those up.

refs: https://github.com/wez/wezterm/issues/162
refs: https://github.com/wez/wezterm/issues/1485
2022-12-20 19:46:08 -07:00
Wez Furlong 30238acb1b x11: potential fix for hanging IME
refs: https://github.com/H-M-H/xcb-imdkit-rs/issues/5
refs: https://github.com/wez/wezterm/issues/2819
2022-12-19 12:23:04 -07:00
Wez Furlong 09f1ecbf82 erase generic T from Atlas, Sprite, CachedGlyph etc.
This will make it easier to use the same impl for webgpu and opengl
for a bunch of this stuff.
2022-11-18 10:03:49 -07:00
Wez Furlong eaa91e9314 deps: update raw-window-handle 2022-11-18 10:03:49 -07:00