[sawfish: 2/5] Negate the sense of an if.
- From: Christopher Bratusek <chrisb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sawfish: 2/5] Negate the sense of an if.
- Date: Thu, 8 Oct 2009 07:45:05 +0000 (UTC)
commit 25df9730669b80c6b2dbf11bf0035af915fca86f
Author: Timo Korvola <tkorvola iki fi>
Date: Mon Oct 1 10:23:16 2007 +0300
Negate the sense of an if.
I think it looks clearer this way around. No functionality change.
lisp/sawfish/wm/state/transient.jl | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/lisp/sawfish/wm/state/transient.jl b/lisp/sawfish/wm/state/transient.jl
index beb44ed..df9c382 100644
--- a/lisp/sawfish/wm/state/transient.jl
+++ b/lisp/sawfish/wm/state/transient.jl
@@ -192,15 +192,15 @@ the level of any transient windows it has."
(or (window-order-most-recent
#:windows (delq w (windows-in-group w)))
(get-window-by-id (window-transient-p w))))))
- (if (or (not parent)
- (not (window-mapped-p parent))
- (not (window-visible-p parent))
- (window-outside-viewport-p parent)
- (not (window-really-wants-input-p parent))
- (window-get parent 'desktop))
- ;; No parent to give focus back to.
- (focus-revert)
- (set-input-focus parent)))))
+ (if (and parent
+ (window-mapped-p parent)
+ (window-visible-p parent)
+ (not (window-outside-viewport-p parent))
+ (window-really-wants-input-p parent)
+ (not (window-get parent 'desktop)))
+ (set-input-focus parent)
+ ;; No parent to give focus back to.
+ (focus-revert)))))
(add-hook 'map-notify-hook transient-map-window)
(add-hook 'unmap-notify-hook transient-unmap-window)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]