[gnome-applets/wip/segeiger/window-picker-in-process: 6/13] windowpicker/task-item.c: Use activate_transient function to activate window
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip/segeiger/window-picker-in-process: 6/13] windowpicker/task-item.c: Use activate_transient function to activate window
- Date: Mon, 8 Jun 2015 22:41:10 +0000 (UTC)
commit 0921c3d2ba8f7f055ab1e8e3a8f7db290b01f90f
Author: Sebastian Geiger <sbastig gmx net>
Date: Mon Jun 8 22:43:33 2015 +0200
windowpicker/task-item.c: Use activate_transient function to activate window
This change makes sure that if a window is activated and it has a dialog
or other transient window open, the transient window will be activated
instead of the parent window.
windowpicker/src/task-item.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 4597bfc..63bc48c 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -140,12 +140,12 @@ static gboolean on_task_item_button_released (
if (WNCK_IS_WORKSPACE (workspace)
&& workspace != wnck_screen_get_active_workspace (screen))
{
- wnck_workspace_activate (workspace, event->time);
+ wnck_workspace_activate (workspace, gtk_get_current_event_time ());
}
if (wnck_window_is_active (window)) {
wnck_window_minimize (window);
} else {
- wnck_window_activate (window, event->time);
+ wnck_window_activate_transient (window, gtk_get_current_event_time ());
}
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]