Skip to content

Commit

Permalink
Revert "Add wp-viewporter"
Browse files Browse the repository at this point in the history
This reverts commit 348690a.

Apparently this breaks input in Chromium: the input region won't resize
together with the window.
  • Loading branch information
YaLTeR committed Mar 10, 2024
1 parent 1971a41 commit 40cec34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions src/handlers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use smithay::{
delegate_output, delegate_pointer_constraints, delegate_pointer_gestures,
delegate_presentation, delegate_primary_selection, delegate_relative_pointer, delegate_seat,
delegate_security_context, delegate_session_lock, delegate_tablet_manager,
delegate_text_input_manager, delegate_viewporter, delegate_virtual_keyboard_manager,
delegate_text_input_manager, delegate_virtual_keyboard_manager,
};

use crate::niri::{ClientState, State};
Expand Down Expand Up @@ -438,5 +438,3 @@ impl DrmLeaseHandler for State {
}
}
delegate_drm_lease!(State);

delegate_viewporter!(State);
4 changes: 0 additions & 4 deletions src/niri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ use smithay::wayland::shm::ShmState;
use smithay::wayland::socket::ListeningSocketSource;
use smithay::wayland::tablet_manager::{TabletManagerState, TabletSeatTrait};
use smithay::wayland::text_input::TextInputManagerState;
use smithay::wayland::viewporter::ViewporterState;
use smithay::wayland::virtual_keyboard::VirtualKeyboardManagerState;
use smithay::wayland::xdg_foreign::XdgForeignState;

Expand Down Expand Up @@ -160,7 +159,6 @@ pub struct Niri {
pub session_lock_state: SessionLockManagerState,
pub foreign_toplevel_state: ForeignToplevelManagerState,
pub screencopy_state: ScreencopyManagerState,
pub viewporter_state: ViewporterState,
pub xdg_foreign_state: XdgForeignState,
pub shm_state: ShmState,
pub output_manager_state: OutputManagerState,
Expand Down Expand Up @@ -921,7 +919,6 @@ impl Niri {
let screencopy_state = ScreencopyManagerState::new::<State, _>(&display_handle, |client| {
!client.get_data::<ClientState>().unwrap().restricted
});
let viewporter_state = ViewporterState::new::<State>(&display_handle);
let xdg_foreign_state = XdgForeignState::new::<State>(&display_handle);

let mut seat: Seat<State> = seat_state.new_wl_seat(&display_handle, backend.seat_name());
Expand Down Expand Up @@ -1044,7 +1041,6 @@ impl Niri {
session_lock_state,
foreign_toplevel_state,
screencopy_state,
viewporter_state,
xdg_foreign_state,
text_input_state,
input_method_state,
Expand Down

0 comments on commit 40cec34

Please sign in to comment.