Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade smithay-client-toolkit 0.17 #4777

Closed
wants to merge 55 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
2f74847
Nuke Wayland
tzx Jan 4, 2024
a3190db
Connections compile without complaining; time for window
tzx Jan 4, 2024
610ca9c
Compiles after nuking connection and window
tzx Jan 4, 2024
eca7bf4
Wow a message loop, but it does nothing...
tzx Jan 4, 2024
e1fd45f
No termination
tzx Jan 4, 2024
552d8dd
Implement the epoll stuff
tzx Jan 4, 2024
966c347
Window progress: no WindowInner though
tzx Jan 4, 2024
5d1ac89
WaylandWindowInner
tzx Jan 4, 2024
4adb02f
No more todos! but I don't see a window
tzx Jan 5, 2024
3f803ef
Don't block ReadGuard after getting fd -> segfaulting webgpu
tzx Jan 5, 2024
6f6c183
Attempt on Implementing EGL for windows
tzx Jan 5, 2024
4025257
Trying to debug why WSurface has no good object id
tzx Jan 5, 2024
f54bb35
Save the window: no more segfault + wgpu works too
tzx Jan 5, 2024
c3b78fd
I give up :sob:, it's not worth my time
tzx Jan 5, 2024
e6bdfe4
Have user data associated with a surface
tzx Jan 6, 2024
c4d64bb
Implement handling window configuration
tzx Jan 7, 2024
1a2d3ea
Handle panics after handling window configuration
tzx Jan 7, 2024
671931a
Implement do_paint -> renders window and then panics at frame()
tzx Jan 7, 2024
4db59e6
A window renders now
tzx Jan 7, 2024
f31274d
Need to look into window frames
tzx Jan 7, 2024
413f8c5
Implement most of dispatch pending_event
tzx Jan 8, 2024
a24c1ff
Fix delegate dispatch for SurfaceUserData
tzx Jan 8, 2024
3a5f388
Implement getting screens
tzx Jan 8, 2024
4b7dd42
Handle scale factor changes: do nothing
tzx Jan 8, 2024
bf61ea6
Handle window close -> no more crashes
tzx Jan 8, 2024
6c0f7e9
Store OutputState, CompositorState, XdgShell in WaylandState instead …
tzx Jan 8, 2024
6dc6920
Wayland refactor: Put handlers for windows in windows.rs, and separat…
tzx Jan 9, 2024
c2c8d24
Refactor windows to WaylandState
tzx Jan 10, 2024
85bb37b
Implement pressing a key
tzx Jan 10, 2024
3e55fe6
Implement enter + emit_focus -> need to impl keymap
tzx Jan 10, 2024
c278e4d
Implement adding keymap
tzx Jan 10, 2024
3b693a9
Ignore cursor handling for now
tzx Jan 10, 2024
96bda97
Use raw_code for process_wayland_key instead of keysym
tzx Jan 10, 2024
6f24a6c
Don't use xkbcommon feature in smithay so we can use modifiers
tzx Jan 11, 2024
bbfefb3
Nuke pointer
tzx Jan 12, 2024
20af052
Starting pointer implementation
tzx Jan 19, 2024
73db71c
Mouse seems to do something, but it is incorrect
tzx Jan 20, 2024
943796c
Implement forgotten PointerEventKind::Release, mouse features seem to…
tzx Jan 20, 2024
cef845d
Theme the pointer
tzx Jan 20, 2024
92f0f59
Implement copying, pasting does not work
tzx Jan 22, 2024
9327a5e
Implement paste
tzx Jan 22, 2024
e356d54
Implement dispatch_dropped_files
tzx Jan 22, 2024
55b58ee
Ignore drag source handlers (we don't drag from wezterm)
tzx Jan 22, 2024
41237cd
Start IME support
tzx Jan 23, 2024
2652394
Implement inputhandler
tzx Jan 23, 2024
312a528
Implement shutdown for ime
tzx Jan 23, 2024
2a6e6ab
Implement wlr-output-management-unstable
tzx Jan 24, 2024
508169e
Fix making wlr-output-management-unstable optional
tzx Jan 24, 2024
660639b
Implement primary selection support
tzx Jan 24, 2024
7ffdab3
Handle crash when using software/opengl due to active_surface_id
tzx Jan 25, 2024
29f1d08
Make IME support optional since not all compositors support it
tzx Jan 26, 2024
cc6ae70
Initial window frame
tzx Jan 27, 2024
168af9b
Implement working frame actions
tzx Jan 27, 2024
5609eaf
Resize window frame correctly
tzx Jan 27, 2024
837aef4
Don't hardcode egl sizes
tzx Jan 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore drag source handlers (we don't drag from wezterm)
  • Loading branch information
tzx committed Jan 22, 2024
commit 55b58eee255d95699816fdc7aa29af009c90c7b2
11 changes: 6 additions & 5 deletions window/src/os/wayland/data_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ impl DataDeviceHandler for WaylandState {
_qh: &wayland_client::QueueHandle<Self>,
data_device: DataDevice,
) {
// TODO: handle mime types
let mime_types = data_device.selection_mime_types();
if !mime_types.iter().any(|s| s == TEXT_MIME_TYPE) {
return;
}

if let Some(offer) = data_device.selection_offer() {
if let Some(copy_and_paste) = self.resolve_copy_and_paste() {
copy_and_paste
Expand Down Expand Up @@ -168,6 +172,7 @@ impl DataOfferHandler for WaylandState {
}
}

// We seem to to ignore all events other than sending_request and cancelled
impl DataSourceHandler for WaylandState {
fn accept_mime(
&mut self,
Expand All @@ -176,7 +181,6 @@ impl DataSourceHandler for WaylandState {
_source: &wayland_client::protocol::wl_data_source::WlDataSource,
_mime: Option<String>,
) {
todo!()
}

fn send_request(
Expand Down Expand Up @@ -216,7 +220,6 @@ impl DataSourceHandler for WaylandState {
_qh: &wayland_client::QueueHandle<Self>,
_source: &wayland_client::protocol::wl_data_source::WlDataSource,
) {
todo!()
}

fn dnd_finished(
Expand All @@ -225,7 +228,6 @@ impl DataSourceHandler for WaylandState {
_qh: &wayland_client::QueueHandle<Self>,
_source: &wayland_client::protocol::wl_data_source::WlDataSource,
) {
todo!()
}

fn action(
Expand All @@ -235,7 +237,6 @@ impl DataSourceHandler for WaylandState {
_source: &wayland_client::protocol::wl_data_source::WlDataSource,
_action: wayland_client::protocol::wl_data_device_manager::DndAction,
) {
todo!()
}
}

Expand Down