[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61770] Focus follows mouse events should not
From: |
Lars Kindermann |
Subject: |
[Octave-bug-tracker] [bug #61770] Focus follows mouse events should not raise the GUI window |
Date: |
Sat, 8 Jan 2022 00:21:46 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 |
URL:
<https://savannah.gnu.org/bugs/?61770>
Summary: Focus follows mouse events should not raise the GUI
window
Project: GNU Octave
Submitted by: larskindermann
Submitted on: Sat 08 Jan 2022 06:21:44 AM CET
Category: GUI
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 7.0.90
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
When the general preferences option "focus follows mouse for widgets docked to
the main window" is selected, the GUI window will always raise to the top
whenever the mouse moves over a widget. This is not always desired, most
window managers have separate options for setting focus and autoraising on
mouse moves.
The mouse-over event handler in octave-dock-widget.cc currently executes
activate(), which calls both setFocus() and raise(). If this is replaced by
setFocus() only, the behaviour fits perfectly with all the possible user
preferences available for the window manager, as the window manager will then
take care of bringing the window to the top, either by clicking or hovering.
I've tested the attached patch on debian / xfce and it works perfectly for all
possible focus settings.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 08 Jan 2022 06:21:44 AM CET Name: focus.diff Size: 834B By:
larskindermann
<http://savannah.gnu.org/bugs/download.php?file_id=52625>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61770>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61770] Focus follows mouse events should not raise the GUI window,
Lars Kindermann <=