aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Garnham <bgarnham@gmail.com>2020-10-23 23:39:30 -0700
committerBrendan Garnham <bgarnham@gmail.com>2020-10-23 23:39:30 -0700
commit28509c6667800076676a3af8763fa7c75f1ccd9b (patch)
tree2f1fb4278078480ee34db7eeff476126f4d90375
parentfix restore_window_metrics to allow downward resizing below last stored size ... (diff)
downloadmagnus-28509c6667800076676a3af8763fa7c75f1ccd9b.tar.gz
magnus-28509c6667800076676a3af8763fa7c75f1ccd9b.tar.bz2
magnus-28509c6667800076676a3af8763fa7c75f1ccd9b.zip
Changed min_x and min_y to min_width and min_height for clarity.
-rwxr-xr-xmagnus8
1 files changed, 4 insertions, 4 deletions
diff --git a/magnus b/magnus
index 567190e..723f512 100755
--- a/magnus
+++ b/magnus
@@ -28,8 +28,8 @@ class Main(object):
self.window_metrics_restored = False
self.decorations_height = 0
self.decorations_width = 0
- self.min_x = 300
- self.min_y = 300
+ self.min_width = 300
+ self.min_height = 300
self.last_x = -1
self.last_y = -1
self.refresh_interval = 250
@@ -100,7 +100,7 @@ class Main(object):
# the window
self.w = Gtk.ApplicationWindow.new(self.app)
- self.w.set_size_request(self.min_x, self.min_y)
+ self.w.set_size_request(self.min_width, self.min_height)
self.w.set_title("Magnus")
self.w.connect("destroy", lambda a: self.app.quit())
self.w.connect("configure-event", self.read_window_size)
@@ -295,7 +295,7 @@ class Main(object):
scr = self.w.get_screen()
sw = float(scr.get_width())
sh = float(scr.get_height())
- self.w.set_size_request(self.min_x, self.min_y)
+ self.w.set_size_request(self.min_width, self.min_height)
self.w.resize(
int(sw * metrics["ww"]), int(sh * metrics["wh"]))
self.w.move(int(sw * metrics["wx"]), int(sh * metrics["wy"]))
bgstack15