diff options
author | Elijah Newren <newren@gmail.com> | 2005-02-20 23:30:35 +0000 |
---|---|---|
committer | Elijah Newren <newren@src.gnome.org> | 2005-02-20 23:30:35 +0000 |
commit | 8ba82411718ddfe70e3676d12a7f225a4bbe2965 (patch) | |
tree | fcf9c7a0e7c6c81d712fc9d96127b14ec7b23311 /libwnck/window-action-menu.c | |
parent | b398517581b59766ed26518b3caecdc4833d020c (diff) | |
download | libwnck-8ba82411718ddfe70e3676d12a7f225a4bbe2965.tar.gz |
Handle the changes to _NET_ACTIVE_WINDOW from bug 128380 (made in order to
2005-02-20 Elijah Newren <newren@gmail.com>
Handle the changes to _NET_ACTIVE_WINDOW from bug 128380 (made in
order to match the agreed upon official behavior of that EWMH
message), make relevant functions take a timestamp parameter, and
add a timestamp to the _NET_CURRENT_DESKTOP message. Fixes all
libwnck issues pointed out in #128380 and #161361.
* libwnck/xutils.[ch]: (_wnck_activate): take a timestamp parameter
to avoid bugs from using gtk_get_current_event_time,
(_wnck_activate_workspace): likewise
* libwnck/pager_accessible.c:
* libwnck/pager.c:
* libwnck/private.h:
* libwnck/tasklist.c:
* libwnck/window-action-menu.c:
* libwnck/window.c:
* libwnck/window.h:
* libwnck/workspace.c:
* libwnck/workspace.h:
* test/test-wnck.c:
Handle the need for passing timestamps to _wnck_activate and
_wnck_activate_workspace (i.e. for _NET_ACTIVE_WINDOW and
_NET_CURRENT_DESKTOP messages)
* libwnck/tasklist.c:
Manual moving of windows to a different workspace now occurs under
different circumstances with the _NET_ACTIVE_WINDOW behavior
change.
* libwnck/selector.c:
With the new _NET_ACTIVE_WINDOW behavior, only
wnck_window_activate() is needed now.
* configure.in:
Increment LIBWNCK_CURRENT because of the API changes.
Diffstat (limited to 'libwnck/window-action-menu.c')
-rw-r--r-- | libwnck/window-action-menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libwnck/window-action-menu.c b/libwnck/window-action-menu.c index 99f95cc..56e0cba 100644 --- a/libwnck/window-action-menu.c +++ b/libwnck/window-action-menu.c @@ -111,12 +111,14 @@ item_activated_callback (GtkWidget *menu_item, switch (action) { case CLOSE: + /* In an activate callback, so gtk_get_current_event_time() suffices */ wnck_window_close (amd->window, gtk_get_current_event_time ()); break; case MINIMIZE: if (wnck_window_is_minimized (amd->window)) - wnck_window_unminimize (amd->window); + wnck_window_unminimize (amd->window, + gtk_get_current_event_time ()); else wnck_window_minimize (amd->window); break; |