Skip to content

Commit

Permalink
Enable smithay viewporter protocol
Browse files Browse the repository at this point in the history
This fixes issue #70
  • Loading branch information
MrNavaStar committed Jan 18, 2025
1 parent cdee6fa commit 55f6d54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use smithay::wayland::shell::kde::decoration::KdeDecorationState;
use smithay::wayland::shell::xdg::XdgShellState;
use smithay::wayland::shell::xdg::decoration::XdgDecorationState;
use smithay::wayland::shm::ShmState;
use smithay::wayland::viewporter::ViewporterState;
use smithay::reexports::wayland_protocols_misc::server_decoration::server::org_kde_kwin_server_decoration_manager::Mode as KdeDecorationMode;

use crate::prelude::*;
Expand Down Expand Up @@ -96,6 +97,7 @@ pub struct WprsServerState {
pub seat_state: SeatState<Self>,
pub data_device_state: DataDeviceState,
pub primary_selection_state: PrimarySelectionState,
pub viewport_state: ViewporterState,

pub seat: Seat<Self>,

Expand Down Expand Up @@ -151,6 +153,7 @@ impl WprsServerState {
seat_state,
data_device_state: DataDeviceState::new::<Self>(&dh),
primary_selection_state: PrimarySelectionState::new::<Self>(&dh),
viewport_state: ViewporterState::new::<Self>(&dh),
seat,
serializer,
object_map: HashMap::new(),
Expand Down
1 change: 1 addition & 0 deletions src/server/smithay_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,3 +1229,4 @@ smithay::delegate_seat!(WprsServerState);
smithay::delegate_data_device!(WprsServerState);
smithay::delegate_output!(WprsServerState);
smithay::delegate_primary_selection!(WprsServerState);
smithay::delegate_viewporter!(WprsServerState);

0 comments on commit 55f6d54

Please sign in to comment.