5b61f2d642
Having the full geometry of the menu's source button (if any) will allow us to address several misbehaviors of window menus, so use that instead of show_menu(). https://bugzilla.gnome.org/show_bug.cgi?id=731058
61 lines
2.7 KiB
C
61 lines
2.7 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
|
#ifndef __SHELL_WM_PRIVATE_H__
|
|
#define __SHELL_WM_PRIVATE_H__
|
|
|
|
#include "shell-wm.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/* These forward along the different effects from GnomeShellPlugin */
|
|
|
|
void _shell_wm_minimize (ShellWM *wm,
|
|
MetaWindowActor *actor);
|
|
void _shell_wm_maximize (ShellWM *wm,
|
|
MetaWindowActor *actor,
|
|
gint x,
|
|
gint y,
|
|
gint width,
|
|
gint height);
|
|
void _shell_wm_unmaximize (ShellWM *wm,
|
|
MetaWindowActor *actor,
|
|
gint x,
|
|
gint y,
|
|
gint width,
|
|
gint height);
|
|
void _shell_wm_map (ShellWM *wm,
|
|
MetaWindowActor *actor);
|
|
void _shell_wm_destroy (ShellWM *wm,
|
|
MetaWindowActor *actor);
|
|
|
|
void _shell_wm_switch_workspace (ShellWM *wm,
|
|
gint from,
|
|
gint to,
|
|
MetaMotionDirection direction);
|
|
void _shell_wm_kill_window_effects (ShellWM *wm,
|
|
MetaWindowActor *actor);
|
|
void _shell_wm_kill_switch_workspace (ShellWM *wm);
|
|
|
|
void _shell_wm_show_tile_preview (ShellWM *wm,
|
|
MetaWindow *window,
|
|
MetaRectangle *tile_rect,
|
|
int tile_monitor);
|
|
void _shell_wm_hide_tile_preview (ShellWM *wm);
|
|
void _shell_wm_show_window_menu (ShellWM *wm,
|
|
MetaWindow *window,
|
|
MetaWindowMenuType menu,
|
|
int x,
|
|
int y);
|
|
void _shell_wm_show_window_menu_for_rect (ShellWM *wm,
|
|
MetaWindow *window,
|
|
MetaWindowMenuType menu,
|
|
MetaRectangle *rect);
|
|
|
|
gboolean _shell_wm_filter_keybinding (ShellWM *wm,
|
|
MetaKeyBinding *binding);
|
|
|
|
void _shell_wm_confirm_display_change (ShellWM *wm);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __SHELL_WM_PRIVATE_H__ */
|