minor change to mouse handling
@@ -292,7 +292,9 @@ class CiProgram:
return findWindow(window, mouseRow, mouseCol)
return parent
window = findWindow(self, mouseRow, mouseCol)
- if window != self:
+ if window == self:
+ app.log.mouse('click landed on screen')
+ return
if self.focusedWindow != window and window.isFocusable:
window.changeFocusTo(window)
mouseRow -= window.top
@@ -358,8 +360,6 @@ class CiProgram:
self.savedMouseWindow = window
self.savedMouseX = mouseCol
self.savedMouseY = mouseRow
- return
- app.log.mouse('click landed on screen')
def handleScreenResize(self):
app.log.debug('handleScreenResize -----------------------')
