-
Notifications
You must be signed in to change notification settings - Fork 569
X11 implementation of druid-shell #599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 35 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
650c23b
Skeleton X11 backend; everything is unimplemented!()
crsaracco 661111b
Compiles and runs, but does nothing.
crsaracco cfd1b5a
Huge hacks to try to get X11 window painting working
crsaracco 3dce469
It draws stuff!
crsaracco 2d39f48
Schedule redraws by sleeping (TODO: fix later)
crsaracco 3f51c1d
Make menu functions no-ops so the 'shello' example doesn't crash
crsaracco 7d2c053
Make TODOs easier to grep
crsaracco f3b3994
Knock out a bunch of the easier 'initial_pr' TODOs
crsaracco 179f781
implement WindowHandle::close and WindowHandle::bring_to_front_and_focus
crsaracco c6f43ce
Run github workflows for druid_shell_x11 branch; fix workflow errors
crsaracco 4b3889c
keycodes
perlindgren a004f8e
mouse down
perlindgren 835ebd4
review updates
13dbbc6
Merge pull request #1 from perlindgren/druid_shell_x11_pln
crsaracco ed0d646
Quick cleanup of X11 platform code before PR
crsaracco 99b7188
Merge remote-tracking branch 'origin/master' into rebase-x11
cmyr d357581
[ci] Run x11 backend in ci
cmyr f185e7a
Post merge fixes
cmyr be56617
Merge pull request #2 from cmyr/update-to-master
crsaracco d910860
s/use_x11/x11
crsaracco 6967fcc
Fix X11 hackery in examples
crsaracco 5622ac0
Update copyright year in druid-shell/src/platform/x11 files
crsaracco f32c1c2
Delete runloop.rs
crsaracco a71e593
Turn all unimplemented!() calls into log::warn!() calls
crsaracco 566e3c5
Return unknown keycode directly instead of using unreachable!()
crsaracco f9c6b82
Update visibility on XWindow to pub(crate) instead of pub
crsaracco 49d7670
Fix clippy warnings for X11 implementation
crsaracco d1ebf76
Small PR review cleanups
crsaracco 9abe0d2
update README with X11 info
crsaracco 47905b0
Re-create X11 piet context every redraw
crsaracco 743afe6
Communicate window size back to Druid
crsaracco 080fc9d
handle mouse_up and mouse_move
crsaracco f1a40af
Make X11 window respond to window resize events.
crsaracco bb407d3
Flush XCB event queue when requesting redraw
crsaracco fe1405d
Code review fixes
crsaracco c641a99
Merge master into druid_shell_x11
crsaracco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ members = [ | |
"druid-shell", | ||
"druid-derive", | ||
] | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -120,5 +120,6 @@ fn main() { | |
|
||
let window = builder.build().unwrap(); | ||
window.show(); | ||
|
||
app.run(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's annoying that we need to always have these on for linux; it means that our x11 backend depends on gtk. I'm not sure what the best solution is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I guess we could technically just split that and make more-specific
cfg
targets?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately you can't use feature targets in this way. :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, dang. Sounds like it should be a feature. Wonder if there's a Rust / Cargo feature request laying around somewhere...