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

(5/5) Multiple Issues: Introduce magnetic edge center #184

Merged
merged 57 commits into from
Oct 23, 2019
Merged
Changes from 5 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6fcd6ad
(1/5) Multiple issues: Prep
felix-andreas Aug 27, 2019
c96e543
snap widgets after mouse button release
felix-andreas Aug 27, 2019
f37971b
close gaps after mouse button release
felix-andreas Aug 27, 2019
27fa510
check intersections after mouse button release
felix-andreas Aug 27, 2019
7e35e2d
introduce magnetic edge/center
felix-andreas Aug 27, 2019
b4adae3
Merge branch 'master' into 1_of_5_prep_for_multiple_issues
Sep 24, 2019
00053df
Merge branch 'master' into 3_of_5_close_gaps_after_mouse_button_release
Sep 24, 2019
c627436
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
Sep 24, 2019
6b65d38
Merge branch 'master' into 5_of_5_introduce_magnetic_edge_center
Sep 24, 2019
4310d3d
don't pass event as parameter
felix-andreas Sep 24, 2019
bacaf98
simplify event connection
felix-andreas Sep 24, 2019
87edff8
Merge branch 'master' into 2_of_5_snap_monitors_after_mouse_button_re…
felix-andreas Sep 24, 2019
70aaaa0
Merge branch '1_of_5_prep_for_multiple_issues' into 2_of_5_snap_monit…
felix-andreas Sep 24, 2019
99b3969
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' of git…
felix-andreas Sep 24, 2019
3a29a0f
spelling: snapping
felix-andreas Sep 24, 2019
1c9e8ea
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' into 3…
felix-andreas Sep 24, 2019
c471a5b
add blank line for linter
felix-andreas Sep 24, 2019
f4f6d57
Merge branch '3_of_5_close_gaps_after_mouse_button_release' of github…
felix-andreas Sep 24, 2019
05c535f
Merge branch '3_of_5_close_gaps_after_mouse_button_release' into 4_of…
felix-andreas Sep 24, 2019
2ef6b0e
add geometry label
felix-andreas Sep 24, 2019
5ad0884
Revert "add geometry label"
felix-andreas Sep 24, 2019
d070af9
Merge branch '4_of_5_fix_intersections_after_mouse_button_release' in…
felix-andreas Sep 24, 2019
00b297a
use Gtk.get_current_event_state to get event state
felix-andreas Sep 24, 2019
f2fabf8
add spaces for struct initialization
felix-andreas Sep 24, 2019
670a8b3
Revert "add spaces for struct initialization"
felix-andreas Sep 24, 2019
832bcae
add spaces for struct initialization
felix-andreas Sep 24, 2019
a159dd7
Merge branch '3_of_5_close_gaps_after_mouse_button_release' into 4_of…
felix-andreas Sep 24, 2019
b9c2f7a
Merge branch '4_of_5_fix_intersections_after_mouse_button_release' in…
felix-andreas Sep 24, 2019
7e86ebf
Merge branch 'master' into 2_of_5_snap_monitors_after_mouse_button_re…
felix-andreas Sep 24, 2019
b666631
Merge branch 'master' into 3_of_5_close_gaps_after_mouse_button_release
felix-andreas Sep 24, 2019
66c509f
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
felix-andreas Sep 24, 2019
888c522
Merge branch 'master' into 5_of_5_introduce_magnetic_edge_center
felix-andreas Sep 24, 2019
1e07fea
remove space in comment
felix-andreas Sep 25, 2019
f92d8d1
Merge branch 'master' into 2_of_5_snap_monitors_after_mouse_button_re…
felix-andreas Sep 25, 2019
0a91ba9
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
Sep 26, 2019
f4b3b6c
Merge branch 'master' into 2_of_5_snap_monitors_after_mouse_button_re…
Sep 26, 2019
f383ba1
Merge branch 'master' into 3_of_5_close_gaps_after_mouse_button_release
Sep 26, 2019
ded0d2a
lint: add empty line
felix-andreas Sep 27, 2019
df9efcb
rename variable to be more explanatory
felix-andreas Sep 27, 2019
5052fa1
make minimum widget offset a const
felix-andreas Sep 27, 2019
07436e2
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' of git…
felix-andreas Sep 27, 2019
86d962f
Merge branch '3_of_5_close_gaps_after_mouse_button_release' of github…
felix-andreas Sep 27, 2019
bd766f2
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' into 3…
felix-andreas Sep 27, 2019
3460154
rename variables for clarity
felix-andreas Sep 27, 2019
b52624d
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' into 3…
felix-andreas Sep 27, 2019
451352c
lint
felix-andreas Sep 28, 2019
78a6f4c
Merge branch '2_of_5_snap_monitors_after_mouse_button_release' into 3…
felix-andreas Sep 28, 2019
84675dd
lint: add space
felix-andreas Sep 28, 2019
def3390
lint: add correct space
felix-andreas Sep 28, 2019
20b9006
Merge branch '3_of_5_close_gaps_after_mouse_button_release' into 4_of…
felix-andreas Sep 28, 2019
14b8fb7
Merge branch '4_of_5_fix_intersections_after_mouse_button_release' in…
felix-andreas Sep 28, 2019
59f7aab
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
Sep 29, 2019
4ded1a8
Revert "Merge branch 'master' into 4_of_5_fix_intersections_after_mou…
felix-andreas Sep 29, 2019
43c9fb8
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
kgrubb Oct 3, 2019
c53a39b
Merge branch 'master' into 4_of_5_fix_intersections_after_mouse_butto…
Oct 6, 2019
0813278
Merge branch '4_of_5_fix_intersections_after_mouse_button_release' in…
felix-andreas Oct 9, 2019
271a4cb
Merge branch 'master' into 5_of_5_introduce_magnetic_edge_center
felix-andreas Oct 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Widgets/DisplaysOverlay.vala
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public class Display.DisplaysOverlay : Gtk.Overlay {
}

/******************************************************************************************
* Widget snapping is done by trying to snap a widget to other widgets called Anchors. *
* Widget snapping is done by trying to snap a widget to other widgets called Anchors. *
* It first calculates the distance between each anchor and the widget, and afterwards *
* snaps the widget to the closest edge/corner *
* *
Expand Down