Skip to content

[macOS] Move the window if there is no title bar - #382

Merged
tomaka merged 4 commits into
rust-windowing:masterfrom
robertgzr:movable-by-window-background
Jan 22, 2018
Merged

tomaka merged 4 commits into
rust-windowing:masterfrom
robertgzr:movable-by-window-background

Conversation

@robertgzr

Copy link
Copy Markdown
Contributor

On macOS by default windows can only be moved by clicking and
dragging on the titlebar, if we spawn a window without one we
need to set the movableByWindowBackground property.

Partial fix for #368

On macOS by default windows can only be moved by clicking and
dragging on the titlebar, if we spawn a window without one we
need to set the `movableByWindowBackground` property.

Partial fix for rust-windowing#368
@robertgzr
robertgzr force-pushed the movable-by-window-background branch from 52d5d20 to 5a5dbb4 Compare January 9, 2018 12:55
@robertgzr robertgzr changed the title [macOS] Move the window if there is not title bar [macOS] Move the window if there is no title bar Jan 9, 2018
@tomaka

tomaka commented Jan 9, 2018

Copy link
Copy Markdown
Contributor

Thanks for the PR. I'm not sure we want this behaviour by default though.

@robertgzr

Copy link
Copy Markdown
Contributor Author

@tomaka should I add this to WindowBuilderExt then?

Implements setting the property via WindowBuilderExt:

    WindowBuilder::new()
        .with_decorations(false)
        .with_movable_by_window_background(true)
@robertgzr
robertgzr force-pushed the movable-by-window-background branch from 0a6a57e to 2ad8882 Compare January 9, 2018 16:54
@robertgzr

Copy link
Copy Markdown
Contributor Author

@tomaka I made this a separate WindowBuilder method... any comments?

@tomaka

tomaka commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

Thanks, looks good! I guess we could make this attribute cross-platform in the future if there's a need and a way to implement it.

Please also add an entry in CHANGELOG.md.

I'll leave this open for a few hours/days in case someone has something to comment.

@robertgzr
robertgzr force-pushed the movable-by-window-background branch from f60bd81 to 558fa94 Compare January 11, 2018 15:55
@robertgzr

Copy link
Copy Markdown
Contributor Author

Do you want me to squash all of that before you merge?

@tomaka

tomaka commented Jan 11, 2018

Copy link
Copy Markdown
Contributor

It will be squashed when merged.

@robertgzr

robertgzr commented Jan 22, 2018 •

Copy link
Copy Markdown
Contributor Author

ping

I have something ready that is based on the changes here...
I'm just waiting for this to be merged :)

@tomaka
tomaka merged commit 7e1c709 into rust-windowing:master Jan 22, 2018
tmfink pushed a commit to tmfink/winit that referenced this pull request Jan 5, 2022
Combine the Z-buffer and fill indirect draw params buffers to reduce the number of SSBO bindings.

Apparently Mesa RadeonSI drivers have a limit of 8 SSBOs.

Closes rust-windowing#373.
@robertgzr
robertgzr deleted the movable-by-window-background branch October 21, 2022 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants