Skip to content

Commit 9913b3c

Browse files
committed
Make PositionedWindow and ShellWindow abstract classes
1 parent 4e0852b commit 9913b3c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/ShellClients/PositionedWindow.vala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Authored by: Leonhard Kargl <[email protected]>
66
*/
77

8-
public class Gala.PositionedWindow : Object {
8+
public abstract class Gala.PositionedWindow : Object {
99
public Meta.Window window { get; construct; }
1010

1111
private ulong position_changed_id;
@@ -33,8 +33,5 @@ public class Gala.PositionedWindow : Object {
3333
SignalHandler.unblock (window, position_changed_id);
3434
}
3535

36-
protected virtual void get_window_position (Mtk.Rectangle window_rect, out int x, out int y) {
37-
x = 0;
38-
y = 0;
39-
}
36+
protected abstract void get_window_position (Mtk.Rectangle window_rect, out int x, out int y);
4037
}

src/ShellClients/ShellWindow.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Authored by: Leonhard Kargl <[email protected]>
66
*/
77

8-
public class Gala.ShellWindow : PositionedWindow, GestureTarget {
8+
public abstract class Gala.ShellWindow : PositionedWindow, GestureTarget {
99
public bool restore_previous_x11_region { private get; set; default = false; }
1010

1111
/**

0 commit comments

Comments
 (0)