Wayland#17
Conversation
faafc1a to
35b8355
Compare
fredkiefer
left a comment
There was a problem hiding this comment.
I only glanced at this code but apart from minor issues I think we should merge it.
| if (window) { | ||
| x += window->pos_x; | ||
| y += window->pos_y; | ||
| win = &window->window_id; |
There was a problem hiding this comment.
Check for win being NULL is missing.
There was a problem hiding this comment.
Interestingly, it was not even writing into *win...
|
I'll continue work on this after the next release. |
non functional, all changes just make it compile again. Configure changes by Ivan Vučica.
For contributions, we generally ask that copyright is assigned to FSF. I believe this has been done by Sergio.
Rearranging order of the code, freeing some memory, writing a note that additional work is required, returning a value through pointer passed as argument, etc.
|
Sorry for the noise and presumably numerous emails. Github review UI was surprisingly not letting me comment directly in the pull request after I started a review; presumably I was supposed to write replies 'somewhere else'. I think your comments are useful, so I am reluctant to just go ahead and merge as-is, thus losing the information in this then-merged PR. I intended to run the code today, but I only got around to rebasing the code, and addressing the most superficial of problems you spotted. Thank you for looking at this in-depth; applying some fixes will be tricky as well, as I am new to Wayland and this new code. Perhaps soon. |
|
@slp It looks like I can't directly assign you this review (presumably because you were not added to the GH org, not sure). However, your input is required for the changes to the headers. Has the copyright been assigned and may I change the headers as visible in my commits? |
This now results in windows being painted on the screen. However, input is still ending up in all the wrong places, and there is a lot of garbage content being painted outside the actual windows. Right clicking on a window seems to trigger rotate behavior, which needs to be evaluated and likely removed (or prevented, if this is done by Weston). Interestingly, checking for ->configured on first surface commit also seems to break the backend.
|
In 41b2d29 I managed to get stuff to paint by not committing the surface unless we first received a configure request and have acked it. Not doing this is against the protocol, and Weston actively drops the connection if we do this. Only updating one location for We still get a lot of garbage, and behavior is generally very broken when it comes to input and clicking around. Here's SystemPreferences.app: Here's Calculator.app: |
|
Some resources for understanding that commit:
|
… informative. The exception was not very informative about why exactly the error message may occur. Weston in Debian buster doesn't support the stable XDG Shell protocol, for instance, and triaging this took some effort.
… and for mouse wheel axis_source.
|
@fredkiefer Would you like to take a final look at this before we merge this? As we agreed, we should merge it in its incomplete and broken state. If you LGTM this, I'll rebase as necessary and push to the main branch, updating any dates as required. Let me know. |
fredkiefer
left a comment
There was a problem hiding this comment.
We both agree as long as this does not break any other backend it is OK to merge, Hopefully someone will pick up the code from there.


This includes contributions from Sergio L. Pascual and Ladislav Michl @3x380V. Both have performed copyright assignment to FSF.
This likely requires a rebase+merge of https://github.com/ivucica/libs-gui/tree/ivucica-wayland as well.
This currently does not run on my machine, as I'm hitting:
Opening this PR for easier viewing anyway.