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

fix(awful: layouts: tile: mouse_resize_handler): count the size of useless_gaps around the client (fixes #424) #3846

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

actionless
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Merging #3846 (7458bb3) into master (d36e132) will increase coverage by 0.01%.
Report is 1 commits behind head on master.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##           master    #3846      +/-   ##
==========================================
+ Coverage   91.00%   91.02%   +0.01%     
==========================================
  Files         901      901              
  Lines       57532    57534       +2     
==========================================
+ Hits        52358    52370      +12     
+ Misses       5174     5164      -10     
Flag Coverage Δ
gcov 91.02% <40.00%> (+0.01%) ⬆️
luacov 93.72% <40.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
lib/awful/layout/suit/tile.lua 74.17% <35.71%> (+0.24%) ⬆️
lib/awful/permissions/init.lua 87.50% <100.00%> (+0.32%) ⬆️

... and 5 files with indirect coverage changes

Comment on lines +52 to +54
local t = c.screen.selected_tag
local useless_gap = t.gap
local mwfact = t.master_width_factor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether this is correct. What happens when the user selects multiple tags?

As a possible fix, we could add a params parameter like the one for arrange().

Copy link
Member Author

@actionless actionless Aug 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's existing code, see the prev lines of the diff - i've just assigned it to the variable to avoid writing c.screen..... twice

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

answering your question - having two tags (with different params) selected in awesome i think not documented behavior, but i think everywhere it defaults to params of the first (by idx) of selected tags - although this PR is not the best place to discuss that behavior

@@ -155,7 +157,7 @@ local function mouse_resize_handler(c, _, _, _, orientation)
return true
end
end
return prev_coords.x == coords.x and prev_coords.y == coords.y
return (prev_coords.x == coords.x) and (prev_coords.y == coords.y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Elv13 Elv13 merged commit aa8c7c6 into awesomeWM:master Aug 30, 2023
9 of 10 checks passed
@actionless actionless deleted the layout-tile-mouse-gaps branch August 31, 2023 12:46
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