comparison lisp/frame.el @ 27774:097c2dd9367a

(display-mouse-p): Use variable xterm-mouse-mode and check for t-mouse too.
author Dave Love <fx@gnu.org>
date Sun, 20 Feb 2000 12:34:49 +0000
parents 33c77685f4a2
children 1ef6cae16192
comparison
equal deleted inserted replaced
27773:e209690ccf0a 27774:097c2dd9367a
1 ;;; frame.el --- multi-frame management independent of window systems. 1 ;;; frame.el --- multi-frame management independent of window systems.
2 2
3 ;; Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. 3 ;; Copyright (C) 1993, 1994, 1996, 1997, 2000 Free Software Foundation, Inc.
4 4
5 ;; Maintainer: FSF 5 ;; Maintainer: FSF
6 ;; Keywords: internal 6 ;; Keywords: internal
7 7
8 ;; This file is part of GNU Emacs. 8 ;; This file is part of GNU Emacs.
801 ((eq system-type 'windows-nt) 801 ((eq system-type 'windows-nt)
802 (> w32-num-mouse-buttons 0)) 802 (> w32-num-mouse-buttons 0))
803 ((memq frame-type '(x mac)) 803 ((memq frame-type '(x mac))
804 t) ;; We assume X and Mac *always* have a pointing device 804 t) ;; We assume X and Mac *always* have a pointing device
805 (t 805 (t
806 (featurep 'xt-mouse))))) 806 (or (and (featurep 'xt-mouse)
807 xterm-mouse-mode)
808 ;; t-mouse is distributed with the GPM package. It doesn't have
809 ;; a toggle.
810 (featurep 't-mouse))))))
807 811
808 (defun display-popup-menus-p (&optional display) 812 (defun display-popup-menus-p (&optional display)
809 "Return non-nil if popup menus are supported on DISPLAY. 813 "Return non-nil if popup menus are supported on DISPLAY.
810 DISPLAY can be a display name, a frame, or nil (meaning the selected 814 DISPLAY can be a display name, a frame, or nil (meaning the selected
811 frame's display). 815 frame's display).