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
FvwmPager make mini windows always round down. #756
Merged
Merged
Conversation
This file contains 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
When computing the size of the mini windows, there was a bug where the bottom edge of a window could extend one pixel beyond the pager's bottom edge. This was due to the rectangle that stored the size of the pager's window being adjusted to be a multiple of the number of visible pages, but not also adjusting the actual pager's window size. Thus the math was computing the desk size (and then the window size) was based on an incorrect window size causing a miscalculation. The code that did this was an artifact left behind when removing the sizehints. As a result the function adjust_for_sizehints is no longer needed, and was removed fixing the problem. In addition, when ReConfiguring the pager, the background was unnecessary being redrawn twice for Transparent colorsets, so removed that as well.
This looks great! I’ll build it soon and report back, thank you!
…________________________________
From: Jaimos Skriletz ***@***.***>
Sent: Wednesday, November 9, 2022 9:04:53 PM
To: fvwmorg/fvwm3 ***@***.***>
Cc: Anindya Mukherjee ***@***.***>; Mention ***@***.***>
Subject: [fvwmorg/fvwm3] FvwmPager make mini windows always round down. (PR #756)
When computing the size of the mini windows, there was a bug
where the bottom edge of a window could extend one pixel beyond
the pager's bottom edge. This was due to the rectangle that stored
the size of the pager's window being adjusted to be a multiple
of the number of visible pages, but not also adjusting the actual
pager's window size. Thus the math was computing the desk size
(and then the window size) was based on an incorrect window size
causing a miscalculation. The code that did this was an artifact
left behind when removing the sizehints. As a result the function
adjust_for_sizehints is no longer needed, and was removed fixing
the problem.
In addition, when ReConfiguring the pager, the background was
unnecessary being redrawn twice for Transparent colorsets, so
removed that as well.
This replaces #679<#679>, and fixes the issue it was trying to fix.
@topcat001<https://github.com/topcat001> Can you double check that this fixes the issue for you, my tests seem positive so far.
________________________________
You can view, comment on, or merge this pull request online at:
#756
Commit Summary
* e0e1024<e0e1024> FvwmPager make mini windows always round down.
File Changes
(1 file<https://github.com/fvwmorg/fvwm3/pull/756/files>)
* M modules/FvwmPager/x_pager.c<https://github.com/fvwmorg/fvwm3/pull/756/files#diff-59c16517f49a0d9f3af04f23504c9532e5fdfa119042823f0fea95bded7aab63> (52)
Patch Links:
* https://github.com/fvwmorg/fvwm3/pull/756.patch
* https://github.com/fvwmorg/fvwm3/pull/756.diff
—
Reply to this email directly, view it on GitHub<#756>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFLGE6UUX7RMHKTDACUZFC3WHR67LANCNFSM6AAAAAAR4E44Q4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Just did a quick test and looks good on my setup, thanks!
…________________________________
From: Anindya Mukherjee ***@***.***>
Sent: Wednesday, November 9, 2022 10:10:08 PM
To: fvwmorg/fvwm3 ***@***.***>; fvwmorg/fvwm3 ***@***.***>
Cc: Mention ***@***.***>
Subject: Re: [fvwmorg/fvwm3] FvwmPager make mini windows always round down. (PR #756)
This looks great! I’ll build it soon and report back, thank you!
________________________________
From: Jaimos Skriletz ***@***.***>
Sent: Wednesday, November 9, 2022 9:04:53 PM
To: fvwmorg/fvwm3 ***@***.***>
Cc: Anindya Mukherjee ***@***.***>; Mention ***@***.***>
Subject: [fvwmorg/fvwm3] FvwmPager make mini windows always round down. (PR #756)
When computing the size of the mini windows, there was a bug
where the bottom edge of a window could extend one pixel beyond
the pager's bottom edge. This was due to the rectangle that stored
the size of the pager's window being adjusted to be a multiple
of the number of visible pages, but not also adjusting the actual
pager's window size. Thus the math was computing the desk size
(and then the window size) was based on an incorrect window size
causing a miscalculation. The code that did this was an artifact
left behind when removing the sizehints. As a result the function
adjust_for_sizehints is no longer needed, and was removed fixing
the problem.
In addition, when ReConfiguring the pager, the background was
unnecessary being redrawn twice for Transparent colorsets, so
removed that as well.
This replaces #679<#679>, and fixes the issue it was trying to fix.
@topcat001<https://github.com/topcat001> Can you double check that this fixes the issue for you, my tests seem positive so far.
________________________________
You can view, comment on, or merge this pull request online at:
#756
Commit Summary
* e0e1024<e0e1024> FvwmPager make mini windows always round down.
File Changes
(1 file<https://github.com/fvwmorg/fvwm3/pull/756/files>)
* M modules/FvwmPager/x_pager.c<https://github.com/fvwmorg/fvwm3/pull/756/files#diff-59c16517f49a0d9f3af04f23504c9532e5fdfa119042823f0fea95bded7aab63> (52)
Patch Links:
* https://github.com/fvwmorg/fvwm3/pull/756.patch
* https://github.com/fvwmorg/fvwm3/pull/756.diff
—
Reply to this email directly, view it on GitHub<#756>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFLGE6UUX7RMHKTDACUZFC3WHR67LANCNFSM6AAAAAAR4E44Q4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
netbsd-srcmastr
pushed a commit
to NetBSD/pkgsrc
that referenced
this pull request
Feb 15, 2023
# Changelog ## [1.0.6a](https://github.com/fvwmorg/fvwm3/tree/1.0.6a) (2023-01-16) ## What's Changed ### Other Changes * dist: doc: include all doc sources by @ThomasAdam in fvwmorg/fvwm3#806 **Full Changelog**: fvwmorg/fvwm3@1.0.6...1.0.6a ## [1.0.6](https://github.com/fvwmorg/fvwm3/tree/1.0.6) (2023-01-14) ## What's Changed ### Breaking Changes * remove fvwm-config by @ThomasAdam in fvwmorg/fvwm3#731 * ta/alloca by @ThomasAdam in fvwmorg/fvwm3#722 * deprecate color commands by @ThomasAdam in fvwmorg/fvwm3#738 * Ensure a default colorset is always configured. by @somiaj in fvwmorg/fvwm3#740 * commands: remove DefaultColors & DefaultColorset by @ThomasAdam in fvwmorg/fvwm3#749 * MenuStyle: Remove Depreciated options and non colorset by @somiaj in fvwmorg/fvwm3#757 ### Enhancements * decor: allow window borders separate colours by @ThomasAdam in fvwmorg/fvwm3#730 * Update Move shuffle logic to jump to next monitor by @somiaj in fvwmorg/fvwm3#742 * conditional: screen: simplify logic by @ThomasAdam in fvwmorg/fvwm3#746 * Allow SidePic in default-config. by @somiaj in fvwmorg/fvwm3#762 * Move shuffle, ensure window inside working area. by @somiaj in fvwmorg/fvwm3#767 * Translucent Menus by @somiaj in fvwmorg/fvwm3#760 * Updates to FvwmPager scaling math to improve visual aspects due to rounding errors. by @somiaj in fvwmorg/fvwm3#790 ### Other Changes * doc: don't install fvwm3_manpage_source by @ThomasAdam in fvwmorg/fvwm3#712 * Rename .stalonetrayrc to stalonetrayrc by @wfp5p in fvwmorg/fvwm3#713 * Fix background resetting in default-config by @somiaj in fvwmorg/fvwm3#714 * desk_add: fix window counting by @ThomasAdam in fvwmorg/fvwm3#716 * remove unused variable by @omar-polo in fvwmorg/fvwm3#718 * two clock_t and time_t casts for portability by @omar-polo in fvwmorg/fvwm3#719 * changing sprintf -> snprintf & co by @omar-polo in fvwmorg/fvwm3#720 * DesktopConfiguration: send status_send() by @ThomasAdam in fvwmorg/fvwm3#724 * FvwmScript.c: fix wrong size of TabCom array by @slazav in fvwmorg/fvwm3#725 * gotodesk: simplify logic for shared/global by @ThomasAdam in fvwmorg/fvwm3#727 * Add a multicolor border example to default-config by @somiaj in fvwmorg/fvwm3#732 * Some pedantic clean up of whitespace and add missing translation strings. by @somiaj in fvwmorg/fvwm3#733 * Tweak HilightBorderColorset by @lgsobalvarro in fvwmorg/fvwm3#737 * docs: remove obsolete GNOME references by @ThomasAdam in fvwmorg/fvwm3#739 * MWMBorder: fix calculation by @ThomasAdam in fvwmorg/fvwm3#743 * Don't set border colorsets by default. by @somiaj in fvwmorg/fvwm3#747 * style: silence warning for unconsumed string by @ThomasAdam in fvwmorg/fvwm3#745 * Add split manpages to default-config. by @somiaj in fvwmorg/fvwm3#750 * FvwnIconMan use font as fallback for tips font. by @somiaj in fvwmorg/fvwm3#751 * FvwmIconMan: Don't chop window display string by @somiaj in fvwmorg/fvwm3#752 * fvwm-config: remove .in file by @ThomasAdam in fvwmorg/fvwm3#758 * FvwmPager make mini windows always round down. by @somiaj in fvwmorg/fvwm3#756 * Clean up some build warnings by @somiaj in fvwmorg/fvwm3#759 * Move shuffle modifications. by @somiaj in fvwmorg/fvwm3#764 * borders: treat 0 pixels as 1 pixel border by @ThomasAdam in fvwmorg/fvwm3#765 * AddWindow: don't crash reparenting by @ThomasAdam in fvwmorg/fvwm3#786 * ModuleSynchronous: don't segfault on free() by @ThomasAdam in fvwmorg/fvwm3#787 * FvwmIconMan: fix segfault in initialisation by @ThomasAdam in fvwmorg/fvwm3#800 * randr: quit when no screens found & not active by @ThomasAdam in fvwmorg/fvwm3#801 ## New Contributors * @wfp5p made their first contribution in fvwmorg/fvwm3#713 **Full Changelog**: fvwmorg/fvwm3@1.0.5...1.0.6 ## [1.0.5](https://github.com/fvwmorg/fvwm3/tree/1.0.5) (2022-09-28)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When computing the size of the mini windows, there was a bug
where the bottom edge of a window could extend one pixel beyond
the pager's bottom edge. This was due to the rectangle that stored
the size of the pager's window being adjusted to be a multiple
of the number of visible pages, but not also adjusting the actual
pager's window size. Thus the math was computing the desk size
(and then the window size) was based on an incorrect window size
causing a miscalculation. The code that did this was an artifact
left behind when removing the sizehints. As a result the function
adjust_for_sizehints is no longer needed, and was removed fixing
the problem.
In addition, when ReConfiguring the pager, the background was
unnecessary being redrawn twice for Transparent colorsets, so
removed that as well.
This replaces #679, and fixes the issue it was trying to fix.
@topcat001 Can you double check that this fixes the issue for you, my tests seem positive so far.