Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit dba22f8

Browse files
committed
win.move(x, y) moved to after win.show_all() (FVWM)
1 parent b253f8c commit dba22f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

sgtk_menu/bar.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ def main():
143143
if wm == "sway":
144144
win.resize(w, h)
145145

146-
# Necessary in FVWM, otherwise it gets always on screen 0
147-
win.move(x, y)
148-
149146
win.show_all()
150147
# If done inside the constructor on Openbox, stops the window from grabbing focus!
151148
win.set_skip_taskbar_hint(True)
152149

150+
# Necessary in FVWM, otherwise it always gets on screen 0
151+
win.move(x, y)
152+
153153
Gtk.main()
154154

155155

sgtk_menu/grid.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ def main():
177177
if wm == "sway":
178178
win.resize(w, h)
179179

180-
# Necessary in FVWM, otherwise it gets always on screen 0
181-
win.move(x, y)
182-
183180
# align width of all buttons
184181
max_width = 0
185182
for item in all_apps:
@@ -198,6 +195,9 @@ def main():
198195
# If done inside the constructor on Openbox, stops the window from grabbing focus!
199196
win.set_skip_taskbar_hint(True)
200197

198+
# Necessary in FVWM, otherwise it always gets on screen 0
199+
win.move(x, y)
200+
201201
Gtk.main()
202202

203203

0 commit comments

Comments
 (0)