Skip to content
Merged
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion qubes_config/global_config/global_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
import gi

gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, GLib, GObject, Gio
from gi.repository import Gtk, GLib, GObject, Gio, Gdk

logger = logging.getLogger("qubes-global-config")

Expand Down Expand Up @@ -314,6 +314,10 @@
else:
height = self.main_window.get_allocated_height()
self.main_window.resize(width, height)
self.main_window.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
self.main_window.set_gravity(Gdk.Gravity.CENTER)
self.main_window.move(0, 0)
self.main_window.set_position(Gtk.WindowPosition.CENTER)

Check warning on line 320 in qubes_config/global_config/global_config.py

View check run for this annotation

Codecov / codecov/patch

qubes_config/global_config/global_config.py#L317-L320

Added lines #L317 - L320 were not covered by tests

# open at specified location
if self.open_at:
Expand Down