Skip to content

Commit e719fb1

Browse files
committed
Fix switching between gwd and mwd
1 parent e757325 commit e719fb1

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

FusionIcon/interface_gtk3/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ def __init__(self, decorator, group):
170170

171171
def activate(self, widget):
172172
if widget.get_active():
173-
decorators[self.decorator].kill_others()
174-
time.sleep(0.5)
175173
decorators.active = self.decorator
176174

177175
class CompizDecoratorMenu(Gtk.Menu):

FusionIcon/util.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def __init__(self, name, decorators, installed):
207207

208208
def kill_others(self):
209209
killall = ['killall']
210-
for decorator in [x for x in self.decorators if x != self.name]:
210+
#for decorator in [x for x in self.decorators if x != self.name]:
211+
for decorator in self.decorators:
211212
killall.append(self.decorators[decorator].base)
212213
run(killall, 'call')
213214

@@ -243,9 +244,11 @@ def __init__(self, installed):
243244

244245
def __set(self, decorator):
245246
if decorator in self:
247+
decorators[decorator].kill_others()
248+
time.sleep(0.5)
246249
self.command.Plugin.Context.ProcessEvents()
247250
print(' * Setting decorator to ' + self[decorator].label + \
248-
'("' + self[decorator].command + '")')
251+
' ("' + self[decorator].command + '")')
249252
self.command.Value = self[decorator].command
250253
self.command.Plugin.Context.Write()
251254
elif not decorator:

0 commit comments

Comments
 (0)