[Comm] Два мыша, два курсора ;-)
Yury Aliaev
mutab0r на rambler.ru
Чт Мар 3 16:43:13 MSK 2005
Alexander Bokovoy пишет:
>>
>>>Боюсь, что это из разряда мечтов %-) Потому что режим focus follows
>>>mouse тогда отдыхает. С выделением ещё как-то справиться можно, но иметь
>>>два равнозначных выделения на экране - это очень чревато. А что
>>>прикажете делать, когда один перетаскиваемый объект сбрасывают на другой
>>>перетаскиваемый объект? Не думаю, что многие приложения на такое
>>>закладываются %-)
>>>Ну и с точки зрения юзабилити - локус внимания у человека только один,
>>>поэтому одновременно управлять двумя курсорами - голова быстро заболит :)
>>
>>Да знаю я всё это... Просто попала мне вожжа под мантию, вот и хочется
>>чего-то этакого ;-) Ну нельзя, так нельзя, и ладно!
>
> Не ставить SendCoreEvents в описании мышей. Два курсора будет, выделение и
> фокус -- один. Но играть в игрушки будет можно. :-)
>
Может подскажите на примере моего /etc/X11/XF86Config-4 что там нужно
править?
-------------- next part --------------
# File generated by XFdrake.
# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
# **********************************************************************
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.
FontPath "unix/:-1"
EndSection
# **********************************************************************
# Server flags section.
# **********************************************************************
Section "ServerFlags"
# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging
#NoTrapSignals
# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.
#DontZap
# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences. This allows clients to receive these key events.
#DontZoom
# This allows the server to start up even if the
# mouse device can't be opened/initialised.
AllowMouseOpenFail
EndSection
# **********************************************************************
# Input devices
# **********************************************************************
# **********************************************************************
# Keyboard section
# **********************************************************************
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "AutoRepeat" "250 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,ru"
Option "XkbVariant" ",winkeys"
Option "XkbOptions" "grp:caps_toggle"
# Option "XkbOptions" "grp:rctrl_toggle,grp:switch,grp_led:scroll"
EndSection
# **********************************************************************
# Pointer section
# **********************************************************************
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Microsoft"
Option "Device" "/dev/ttyS0"
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# ChordMiddle is an option for some 3-button Logitech mice
# Option "ChordMiddle"
EndSection
Section "InputDevice"
Identifier "Mouse2"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# ChordMiddle is an option for some 3-button Logitech mice
# Option "ChordMiddle"
EndSection
Section "Module"
# This loads the DBE extension module.
Load "dbe"
Load "extmod"
Load "glx"
Load "xie"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
#Option "omit xfree86-dga"
EndSubSection
# This loads the Type1 and FreeType font modules
Load "type1"
Load "freetype"
EndSection
# **********************************************************************
# Monitor section
# **********************************************************************
# Any number of monitor sections may be present
Section "Monitor"
Identifier "Generic|640x480 @ 60 Hz"
VendorName "Generic"
ModelName "Unknown"
# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
HorizSync 31.5
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
VertRefresh 50-61
# This is a set of extended mode timings typically used for laptop,
# TV fullscreen mode or DVD fullscreen output.
# These are available along with standard mode timings.
ModeLine "640x480" 25.20 640 664 760 800 480 490 492 525 -hsync -vsync
EndSection
# **********************************************************************
# Graphics device section
# **********************************************************************
Section "Device"
Identifier "Generic VGA"
Driver "vga"
EndSection
Section "Device"
Identifier "ATI Mach64 3D RAGE II"
VendorName "Unknown"
BoardName "Unknown"
Driver "ati_gatos"
# VideoRam 2048
# Clock lines
# Uncomment following option if you see a big white block
# instead of the cursor!
# Option "sw_cursor"
Option "DPMS" "on"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
Section "Screen"
Identifier "screen1"
Device "ATI Mach64 3D RAGE II"
Monitor "Generic|640x480 @ 60 Hz"
DefaultColorDepth 16
Subsection "Display"
Depth 16
Modes "640x480"
ViewPort 0 0
Virtual 800 600
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
Screen "screen1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Mouse2" "AlwaysCore"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Подробная информация о списке рассылки Community