mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-08 23:23:23 -06:00
autodrawer: When first fullscreen, keep toolbar open longer
So it doesn't just disappear out of the user's site so quick that they don't notice it. We want it to be obvious enough so they know how to escape.
This commit is contained in:
parent
b23520483e
commit
f7d1338534
@ -436,14 +436,14 @@ class AutoDrawer(Drawer):
|
||||
#
|
||||
# Without this, switching to fullscreen keeps the toolbar
|
||||
# stuck open until mouse over
|
||||
self._update(False)
|
||||
self._update(False, 1500)
|
||||
|
||||
self.eventBox.add(newover)
|
||||
self.overAllocID = newover.connect("size-allocate", size_allocate)
|
||||
|
||||
self.over = newover
|
||||
|
||||
def _update(self, do_immediate):
|
||||
def _update(self, do_immediate, customDelay=-1):
|
||||
toplevel = self.get_toplevel()
|
||||
if not toplevel or not toplevel.is_toplevel():
|
||||
# The autoDrawer cannot function properly without a toplevel.
|
||||
@ -507,7 +507,10 @@ class AutoDrawer(Drawer):
|
||||
elif do_immediate:
|
||||
self._enforce(False)
|
||||
else:
|
||||
self.delayConnection = GLib.timeout_add(self.delayValue,
|
||||
delay = self.delayValue
|
||||
if customDelay != -1:
|
||||
delay = customDelay
|
||||
self.delayConnection = GLib.timeout_add(delay,
|
||||
self._on_enforce_delay)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user