[Eclipse-cvs] CVS update: eclipse/virtual-screen.lisp

Iban Hatchondo ihatchondo at common-lisp.net
Thu Oct 9 11:39:42 UTC 2003


Update of /project/eclipse/cvsroot/eclipse
In directory common-lisp.net:/tmp/cvs-serv23033

Modified Files:
	virtual-screen.lisp 
Log Message:
added missing test in window-belongs-to-vscreen-p: the window should be in our cache.

Date: Thu Oct  9 07:39:42 2003
Author: ihatchondo

Index: eclipse/virtual-screen.lisp
diff -u eclipse/virtual-screen.lisp:1.9 eclipse/virtual-screen.lisp:1.10
--- eclipse/virtual-screen.lisp:1.9	Mon Oct  6 13:57:26 2003
+++ eclipse/virtual-screen.lisp	Thu Oct  9 07:39:41 2003
@@ -1,5 +1,5 @@
 ;;; -*- Mode: Lisp; Package: ECLIPSE-INTERNALS -*-
-;;; $Id: virtual-screen.lisp,v 1.9 2003/10/06 17:57:26 ihatchondo Exp $
+;;; $Id: virtual-screen.lisp,v 1.10 2003/10/09 11:39:41 ihatchondo Exp $
 ;;;
 ;;; Copyright (C) 2002 Iban HATCHONDO
 ;;; contact : hatchond at yahoo.fr
@@ -23,16 +23,17 @@
 
 ;;;; Private
 
-(defun window-belongs-to-vscreen-p (window scr-num iconify-p)
-  (let ((n (or (window-desktop-num window) -1))
-	(wm-state (car (wm-state window)))
-	(netwm-type (netwm:net-wm-window-type window)))
-    (and (or (= n scr-num) (= n +any-desktop+))
-	 (or (eq wm-state 1) (and iconify-p (eq wm-state 3)))
-	 (not (member :win_hints_skip_taskbar (gnome:win-hints window)))
-	 (not (member :_net_wm_state_skip_taskbar (netwm:net-wm-state window)))
-	 (not (member :_net_wm_window_type_desktop netwm-type))
-	 (not (member :_net_wm_window_type_dock netwm-type)))))
+(defun window-belongs-to-vscreen-p (win scr-num iconify-p)
+  (when (lookup-widget win)
+    (let ((n (or (window-desktop-num win) -1))
+	  (wm-state (car (wm-state win)))
+	  (netwm-type (netwm:net-wm-window-type win)))
+      (and (or (= n scr-num) (= n +any-desktop+))
+	   (or (eq wm-state 1) (and iconify-p (eq wm-state 3)))
+	   (not (member :win_hints_skip_taskbar (gnome:win-hints win)))
+	   (not (member :_net_wm_state_skip_taskbar (netwm:net-wm-state win)))
+	   (not (member :_net_wm_window_type_desktop netwm-type))
+	   (not (member :_net_wm_window_type_dock netwm-type))))))
 
 (defun map-or-unmap-vscreen (fun scr-num)
   (loop for widget being each hash-value in *widget-table*





More information about the Eclipse-cvs mailing list