Skip to content
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

Desktop state is read from window manager #80

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kurokawachan
Copy link
Contributor

fixing issue #79

@kurokawachan kurokawachan marked this pull request as ready for review August 26, 2024 11:00
@kurokawachan
Copy link
Contributor Author

We should update commit message to

"Desktop state is read from window manager"

@ib
Copy link
Member

ib commented Aug 26, 2024

You should read about how good commit messages should look like.

@kurokawachan
Copy link
Contributor Author

What's wrong with it?

Would you come up with something more inspiring? We will see which is better?

@ib
Copy link
Member

ib commented Aug 27, 2024

Reading your commit message, I have no idea what you did and why.

@kurokawachan
Copy link
Contributor Author

Reading your comment, I have no idea what you want

@PCMan
Copy link
Member

PCMan commented Feb 6, 2025

Hi @kurokawachan thanks for the change. To make the purpose of the change clear to other developers, I'd suggest rewriting the commit message to something like this:

Check whether desktop is shown using `NET_SHOWING_DESKTOP` X11 property.

To correctly reflect the desktop showing state in the UI, the current state needs to be
read from X11 properties set by the window manager. Otherwise the UI may not always
be updated when desktop showing state is changed by other applications.

The above is just an example. It may not correctly describe what you did in the change.

There's no style guide for LXDE at the moment, but a commonly seen format is:

  1. Describe what you did in the change on the first line.
  2. Then, explain why this is needed.

This can help other collaborators understand the purpose of the change and speed up code review. Thank you!

@PCMan
Copy link
Member

PCMan commented Feb 6, 2025

Hi @ib I totally agree with you that the commit message needs to better describe why the change is needed.
As not everyone is good at doing this, would you work with @kurokawachan to polish the commit message, and then get the fix merged, please? The lack of bug fixes may prevent lxpanel from being included in major distros (Debian for example).
Really appreciate that. Thank you both!

@ib
Copy link
Member

ib commented Feb 6, 2025

@PCMan

  • I already did work with kurokawachan on commit messages in Update wincmd.c #78. He doesn't seem to be interested. Nevertheless, I am of course considering his suggestions.
  • The plan is to fix all GTK3 issues and as many bugs as possible before the trixie freeze deadline, so that LXDE will still be available in Debian.
  • BTW, did you read my email of 2024-12-14 regarding my lack of permission to set up reposity features? It would really help to have issues enabled for all LXDE repositories.

@kurokawachan
Copy link
Contributor Author

Hello @PCMan

Thanks for the clarification. I do believe the message you wrote is better understandable. Let me see how to get the fix merged.

…ty. To correctly reflect the desktop showing state in the UI, the current state needs to be read from X11 properties set by the window manager. Otherwise the UI may not always be updated when desktop showing state is changed by other applications.
…ded Window Manager Hints property.

To correctly reflect the desktop showing state in the UI, the current state needs to be
read from X11 properties set by the window manager. Otherwise the UI may not always
be updated when desktop showing state is changed by other applications.
@kurokawachan
Copy link
Contributor Author

Hello @ib

If you agree with the updated message, would you merge it?

Thanks

@PCMan
Copy link
Member

PCMan commented Feb 8, 2025

Hi @ib Thank you I just enabled Issues for all repos.
@kurokawachan Thank you for the update. The commit looks good to me, but let's wait for @ib 's review since he's the current maintainer.
Really appreciate what both of you did to keep this project running!

@ib
Copy link
Member

ib commented Feb 13, 2025

There's no style guide for LXDE at the moment

Well, let's set up a commit guideline.

A good commit message consists of

  • a header line that describes what is being done
  • a body that explains why it is being done

i.e.

Describe the commit in one line

The body of the commit message is a few lines of text, explaining things
in more detail, possibly giving some background on the problem being
fixed.

It can be several paragraphs, with proper line breaks.

If there is a reference, end it with something like:

This fixes url-of-whatever-it-fixes.

A line must not exceed 72 characters, and the header is just one line with the verb in the imperative and no sentence-ending period.

Over time, commits should tell a story about the history of a repository and how it came to be the way that it currently is.

@ib
Copy link
Member

ib commented Feb 13, 2025

@kurokawachan Additional note: Consolidate changes belonging to one issue into a single commit, performing squash and/or amend operations in your working repository if necessary.

2d84b94 and fd75d28, for example, do not belong in the history.

@ib
Copy link
Member

ib commented Feb 13, 2025

@kurokawachan Your issue #79 explains why and what excellently. This is what the commit message should say.

@kurokawachan
Copy link
Contributor Author

Consolidate changes belonging to one issue into a single commit

Hello, have a look here
#95

@ib
Copy link
Member

ib commented Feb 24, 2025

@kurokawachan There is no need to open a new pull request. You can consolidate using your original branch:

git checkout desktop_state
git rebase -i HEAD~4

Select the four commits as follows:

pick
squash
squash
squash

Save, then edit the commit message by deleting everything except commit message #4, and save.

Now git commit --amend to edit your commit message according to #80 (comment).

Finally: git push --force which will update this pull request.

@kurokawachan
Copy link
Contributor Author

Hello @ib Thanks for the suggestion. However, git push --force is not good practice
Would you just merge the new one?

@ib
Copy link
Member

ib commented Feb 26, 2025

@kurokawachan

However, git push --force is not good practice

It's good practice for a temporary working branch for a pull request that will be deleted afterwards. We are not talking about the published master or main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants