9aceadde003d2b200dc7d31ebd4d9ca1f1298603,check_monitors.py,XDisp,find_orphans,#XDisp#,195
Before Change
def find_orphans(self):
print("Trying to find orphans")
if not self.laptop_screen:
print("No laptop screen, not sure how to tell what"s orphaned")
return
if not self.allwindows:
self.find_all_windows()
for win, geom in self.allwindows:
name, classname = win.get_wm_class()
if self.is_visible(geom.x, geom.y):
print("vis ", end="")
else:
print("**** Orphan", end="")
print("%4d x %4d +%4d + %4d %s: %s" % (geom.width,
geom.height,
geom.x, geom.y,
After Change
// A safe place to move orphans, on the laptop screen or, otherwise,
// the first connected display.
if self.laptop_screen:
safegeom = self.mon_geom[self.laptop_screen]
else:
// Just pick the first one, understanding that dicts have no "first"
safegeom = self.mon_geom[self.mon_geom.keys()[0]]
safe_x = safegeom["x"] + 25
safe_y = safegeom["y"] + 25
for win, geom in self.allwindows:
name, classname = win.get_wm_class()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: akkana/scripts
Commit Name: 9aceadde003d2b200dc7d31ebd4d9ca1f1298603
Time: 2019-09-07
Author: akkana@shallowsky.com
File Name: check_monitors.py
Class Name: XDisp
Method Name: find_orphans
Project Name: akkana/scripts
Commit Name: 9aceadde003d2b200dc7d31ebd4d9ca1f1298603
Time: 2019-09-07
Author: akkana@shallowsky.com
File Name: check_monitors.py
Class Name: XDisp
Method Name: find_orphans
Project Name: akkana/scripts
Commit Name: e94d85a8db98f9264cf4f5200d39ea41d8bdb1d0
Time: 2019-09-07
Author: akkana@shallowsky.com
File Name: check_monitors.py
Class Name: XDisp
Method Name: print_monitor
Project Name: kbardool/keras-frcnn
Commit Name: 6ecffe54690da84be104cbb2ec8a709f6b2a7fd3
Time: 2017-02-03
Author: yannhenon@gmail.com
File Name: data_augment.py
Class Name:
Method Name: augment