mirror of
https://github.com/brl/mutter.git
synced 2025-08-05 08:04:50 +00:00
Focus the desktop when showing it. Fixes #159257.
2004-12-19 Elijah Newren <newren@gmail.com> Focus the desktop when showing it. Fixes #159257. * src/display.c (event_callback): obtain a timestamp to pass to meta_screen_show_desktop * src/keybindings.c (handle_toggle_desktop): obtain a timestamp to pass to meta_screen_show_desktop * src/screen.c (meta_screen_show_desktop): add a timestamp parameter, get the most recently used window of type DESKTOP (if there is one) and focus it * src/screen.h (meta_screen_show_desktop): add a timestamp parameter
This commit is contained in:

committed by
Elijah Newren

parent
c3a607f999
commit
d8d77bd65b
@@ -2152,7 +2152,7 @@ event_callback (XEvent *event,
|
||||
meta_verbose ("Request to %s desktop\n", showing_desktop ? "show" : "hide");
|
||||
|
||||
if (showing_desktop)
|
||||
meta_screen_show_desktop (screen);
|
||||
meta_screen_show_desktop (screen, meta_display_get_current_time_roundtrip (display));
|
||||
else
|
||||
{
|
||||
meta_screen_unshow_desktop (screen);
|
||||
|
Reference in New Issue
Block a user