Skip to content

Commit

Permalink
replace ConceptFrame with FallbackFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
elinorbgr authored and vberger committed Mar 14, 2021
1 parent c95343a commit cbbb90c
Show file tree
Hide file tree
Showing 9 changed files with 195 additions and 746 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

#### Breaking Changes

- `ConceptFrame` is removed, as well as the `frames` cargo feature, and replaced by a more minimalistic
`FallbackFrame`. Dependency on `andrew` and `fontconfig` is dropped in the process. If fancier
decorations are needed, they should be implemented using the `Frame` trait.

## 0.13.0 - 2021-03-04

#### Breaking Changes
Expand Down
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,15 @@ nix = "0.19"
dlib = "0.5"
lazy_static = "1.0"
memmap2 = "0.2.0"
andrew = { version = "0.3.0", optional = true }
log = "0.4"
wayland-client = "0.28"
wayland-protocols = { version = "0.28" , features = ["client", "unstable_protocols"] }
wayland-cursor = "0.28"
calloop = { version = "0.6.1", optional = true }
servo-fontconfig = { version = "0.5", optional = true }

[features]
default = ["frames", "calloop", "dlopen"]
default = ["calloop", "dlopen"]
dlopen = ["wayland-client/dlopen"]
frames = ["andrew", "servo-fontconfig"]

[dev-dependencies]
image = "0.23"
4 changes: 2 additions & 2 deletions examples/image_viewer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::io::{BufWriter, Seek, SeekFrom, Write};

use sctk::reexports::client::protocol::{wl_shm, wl_surface};
use sctk::shm::MemPool;
use sctk::window::{ConceptFrame, Event as WEvent, State};
use sctk::window::{Event as WEvent, FallbackFrame, State};

sctk::default_environment!(ImViewerExample, desktop);

Expand Down Expand Up @@ -62,7 +62,7 @@ fn main() {
// specifies the type we want to use to draw the borders. To create your own
// decorations you just need an object to implement the `Frame` trait.
let mut window = env
.create_window::<ConceptFrame, _>(
.create_window::<FallbackFrame, _>(
surface, // the wl_surface that serves as the basis of this window
None, // None for theme_manager, since we don't theme pointer outself
image.dimensions(), // the initial internal dimensions of the window
Expand Down
4 changes: 2 additions & 2 deletions examples/kbd_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use sctk::reexports::calloop;
use sctk::reexports::client::protocol::{wl_keyboard, wl_shm, wl_surface};
use sctk::seat::keyboard::{map_keyboard_repeat, Event as KbEvent, RepeatKind};
use sctk::shm::MemPool;
use sctk::window::{ConceptFrame, Event as WEvent};
use sctk::window::{Event as WEvent, FallbackFrame};

sctk::default_environment!(KbdInputExample, desktop);

Expand Down Expand Up @@ -38,7 +38,7 @@ fn main() {
let surface = env.create_surface().detach();

let mut window = env
.create_window::<ConceptFrame, _>(
.create_window::<FallbackFrame, _>(
surface,
None,
dimensions,
Expand Down
4 changes: 2 additions & 2 deletions examples/pointer_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::io::{BufWriter, Seek, SeekFrom, Write};

use sctk::reexports::client::protocol::{wl_pointer, wl_shm, wl_surface};
use sctk::shm::MemPool;
use sctk::window::{ConceptFrame, Event as WEvent};
use sctk::window::{Event as WEvent, FallbackFrame};

#[derive(Debug)]
enum NextAction {
Expand Down Expand Up @@ -75,7 +75,7 @@ fn main() {
.detach();

let mut window = env
.create_window::<ConceptFrame, _>(
.create_window::<FallbackFrame, _>(
surface,
None,
window_config.dimensions(),
Expand Down
4 changes: 2 additions & 2 deletions examples/selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use sctk::{
primary_selection::PrimarySelectionSourceEvent,
seat::keyboard::{map_keyboard_repeat, Event as KbEvent, KeyState, RepeatKind},
shm::MemPool,
window::{ConceptFrame, Event as WEvent},
window::{Event as WEvent, FallbackFrame},
};

use sctk::reexports::{
Expand Down Expand Up @@ -42,7 +42,7 @@ fn main() {
let surface = env.create_surface().detach();

let mut window = env
.create_window::<ConceptFrame, _>(
.create_window::<FallbackFrame, _>(
surface,
None,
dimensions,
Expand Down
180 changes: 0 additions & 180 deletions examples/themed_frame.rs

This file was deleted.

Loading

0 comments on commit cbbb90c

Please sign in to comment.