summaryrefslogtreecommitdiff
path: root/libwnck/screen.h
diff options
context:
space:
mode:
authorElijah Newren <newren@math.utah.edu>2004-08-16 03:15:30 +0000
committerElijah Newren <newren@src.gnome.org>2004-08-16 03:15:30 +0000
commitf17cffaee0b723041bb1d2872b8be6061c913dff (patch)
tree3509c27e0dd6eb3f1efe555479814eb51915c96f /libwnck/screen.h
parent27f9f56cfdedcb339252d448a42e074ce878e208 (diff)
downloadlibwnck-f17cffaee0b723041bb1d2872b8be6061c913dff.tar.gz
Fix window activation vs. minimization for mouse focus. (fixes #136581)
2004-08-15 Elijah Newren <newren@math.utah.edu> Fix window activation vs. minimization for mouse focus. (fixes #136581) * libwnck/screen.c (struct _WnckScreenPrivate): add a previously_active_window field, (wnck_screen_get_previously_active_window): new function, (update_client_list): update the previously_active_window as well, (update_active_window): also updates the previously_active_window now. * libwnck/screen.h Added wnck_screen_get_previously_active_window * libwnck/tasklist.c (wnck_task_button_press_event): minimize when the tasklist button is pressed if the window is the most recently activated (instead of if the window is currently active). * libwnck/window.[ch] (wnck_window_is_most_recently_activated): new function
Diffstat (limited to 'libwnck/screen.h')
-rw-r--r--libwnck/screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libwnck/screen.h b/libwnck/screen.h
index a11a3d8..11b6c56 100644
--- a/libwnck/screen.h
+++ b/libwnck/screen.h
@@ -119,6 +119,7 @@ WnckWorkspace* wnck_screen_get_workspace (WnckScreen *screen,
int workspace);
WnckWorkspace* wnck_screen_get_active_workspace (WnckScreen *screen);
WnckWindow* wnck_screen_get_active_window (WnckScreen *screen);
+WnckWindow* wnck_screen_get_previously_active_window (WnckScreen *screen);
GList* wnck_screen_get_windows (WnckScreen *screen);
GList* wnck_screen_get_windows_stacked (WnckScreen *screen);
void wnck_screen_force_update (WnckScreen *screen);