Add application menu area to panel
This is a start at the "Active Appliction Item" component of the shell design. Currently we just show the currently focused application. When launching a new application, we show that as well. The implementation here is not complete; basically when launching we de-focus the active one, and the application well shows the most recent startup sequence. This kind of fails in the case of multiple sequences, and we also don't correctly de-focus the current window in other launch paths.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <gconf/gconf.h>
|
||||
#include <gconf/gconf-client.h>
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
#include "shell-global.h"
|
||||
#include "shell-texture-cache.h"
|
||||
@ -922,7 +923,13 @@ shell_app_info_launch_full (ShellAppInfo *info,
|
||||
display = meta_screen_get_display (screen);
|
||||
|
||||
if (timestamp == 0)
|
||||
timestamp = meta_display_get_current_time (display);
|
||||
timestamp = clutter_get_current_event_time ();
|
||||
|
||||
/* Shell design calls for on application launch, no window is focused,
|
||||
* and we have startup notification displayed.
|
||||
*/
|
||||
meta_display_focus_the_no_focus_window (display, screen, timestamp);
|
||||
|
||||
if (workspace < 0)
|
||||
workspace = meta_screen_get_active_workspace_index (screen);
|
||||
|
||||
|
Reference in New Issue
Block a user