Skip to content

Commit

Permalink
v12
Browse files Browse the repository at this point in the history
fix broken window focus commands
  • Loading branch information
troyready committed Jun 29, 2024
1 parent a9ddb17 commit 894de74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"url": "https://github.com/troyready/quarterwindows",
"uuid": "quarterwindows@troyready.com",
"settings-schema": "org.gnome.shell.extensions.com-troyready-quarterwindows",
"version": 10
"version": 12
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quarterwindows",
"version": "11.0.0",
"version": "12.0.0",
"description": "Add additional window management shortcuts",
"main": "extension.js",
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions putWindow/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let angleCorrection = 20;
let distanceCorrection = 10;

function findAndActivateNearestCandidate(candidates) {
export function findAndActivateNearestCandidate(candidates) {
if (candidates.length == 0) return;

candidates.sort(function (a, b) {
Expand All @@ -24,7 +24,7 @@ function findAndActivateNearestCandidate(candidates) {
candidates[0].window.meta_window.activate(global.get_current_time());
}

function getDistance(focusWin, candidateWin) {
export function getDistance(focusWin, candidateWin) {
let focus = getWindowCenter(focusWin.meta_window.get_frame_rect());
let candidate = getWindowCenter(candidateWin.meta_window.get_frame_rect());

Expand All @@ -41,7 +41,7 @@ function getWindowCenter(windows_frame_rect) {
};
}

function isFocusCandidate(focusWin, candidateWin, direction) {
export function isFocusCandidate(focusWin, candidateWin, direction) {
let focusRect = focusWin.meta_window.get_frame_rect();
let focus = getWindowCenter(focusRect);

Expand Down

0 comments on commit 894de74

Please sign in to comment.