feat: working version with bugfixes and readme
This commit is contained in:
@@ -29,4 +29,8 @@ install: $(NAME).zip
|
|||||||
@cp dist/* ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)/
|
@cp dist/* ~/.local/share/gnome-shell/extensions/$(NAME)@$(DOMAIN)/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf dist node_modules $(NAME).zip
|
@rm -rf dist node_modules $(NAME).zip
|
||||||
|
|
||||||
|
|
||||||
|
test:
|
||||||
|
@dbus-run-session -- gnome-shell --nested --wayland
|
||||||
+3
-3
@@ -59,7 +59,7 @@ export default class ActiveBorderExtension extends Extension {
|
|||||||
name: 'active-window-border',
|
name: 'active-window-border',
|
||||||
style_class: 'active-window-border',
|
style_class: 'active-window-border',
|
||||||
reactive: false,
|
reactive: false,
|
||||||
x: rect.x - 2, // Adjust for border width
|
x: rect.x + 2, // Adjust for border width
|
||||||
y: rect.y - 2,
|
y: rect.y - 2,
|
||||||
width: rect.width + 2,
|
width: rect.width + 2,
|
||||||
height: rect.height + 2,
|
height: rect.height + 2,
|
||||||
@@ -86,8 +86,8 @@ export default class ActiveBorderExtension extends Extension {
|
|||||||
const rect = window.get_frame_rect();
|
const rect = window.get_frame_rect();
|
||||||
if (!rect) return;
|
if (!rect) return;
|
||||||
|
|
||||||
this.borderActor.set_position(rect.x - 2, rect.y - 2);
|
this.borderActor.set_position(rect.x + 2, rect.y - 2);
|
||||||
this.borderActor.set_size(rect.width + 2, rect.height + 2);
|
this.borderActor.set_size(rect.width - 2, rect.height + 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
_clearBorder() {
|
_clearBorder() {
|
||||||
|
|||||||
Reference in New Issue
Block a user