Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

Floating windows choose where they display #232

Merged
merged 5 commits into from
Jan 17, 2017

Conversation

Timidger
Copy link
Member

@Timidger Timidger commented Jan 14, 2017

  • Floating windows can decide where they display (and Way Cooler will honor the request).
  • Internal: Tree commands to get a container now returns a Result<&/&mut Container, TreeError for better error checking.

Doesn't totally fix #218, as we don't do any centering. Still considering whether that's worth implementing.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 56.848% when pulling 210a418 on floating-window-geometry-request into 9c8970c on master.

@@ -360,7 +367,7 @@ pub extern fn pointer_motion(view: WlcView, _time: u32, point: &Point) -> bool {
if let Ok(mut tree) = try_lock_tree() {
// TODO Change to id of _view
// Need to implement a map of view to uuid first though...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: comments are out of date

/// Updates the geometry of the view from an external request
/// (such a request can come from the view itself)
///
/// This is only applied to the view if it is floating.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: another old comment

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 56.848% when pulling b41da82 on floating-window-geometry-request into 9c8970c on master.

@Timidger Timidger merged commit 6edea7b into master Jan 17, 2017
@Timidger Timidger deleted the floating-window-geometry-request branch January 17, 2017 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Popup windows should be centered on the screen
3 participants