mirror of
https://github.com/brl/mutter.git
synced 2025-08-07 00:54:42 +00:00
Add focus-window property to MetaDisplay
Useful mainly for notify::focus-window.
This commit is contained in:
@@ -1289,7 +1289,10 @@ meta_window_unmanage (MetaWindow *window,
|
||||
g_assert (window->display->grab_window != window);
|
||||
|
||||
if (window->display->focus_window == window)
|
||||
window->display->focus_window = NULL;
|
||||
{
|
||||
window->display->focus_window = NULL;
|
||||
g_object_notify (window->display, "focus-window");
|
||||
}
|
||||
|
||||
if (window->maximized_horizontally || window->maximized_vertically)
|
||||
unmaximize_window_before_freeing (window);
|
||||
@@ -5747,7 +5750,7 @@ meta_window_notify_focus (MetaWindow *window,
|
||||
meta_display_ungrab_focus_window_button (window->display, window);
|
||||
|
||||
g_signal_emit (window, window_signals[FOCUS], 0);
|
||||
|
||||
g_object_notify (window->display, "focus-window");
|
||||
}
|
||||
}
|
||||
else if (event->type == FocusOut ||
|
||||
@@ -5773,6 +5776,7 @@ meta_window_notify_focus (MetaWindow *window,
|
||||
"* Focus --> NULL (was %s)\n", window->desc);
|
||||
|
||||
window->display->focus_window = NULL;
|
||||
g_object_notify (window->display, "focus-window");
|
||||
window->has_focus = FALSE;
|
||||
if (window->frame)
|
||||
meta_frame_queue_draw (window->frame);
|
||||
|
Reference in New Issue
Block a user