move/resize from keyboard



Hi,

The windows taskbar has Move/Resize menu items for each window, to
initiate keyboard-based move/resize operations. Should we do this:

  #define _NET_WM_MOVERESIZE_SIZE_TOPLEFT      0
  #define _NET_WM_MOVERESIZE_SIZE_TOP          1
  #define _NET_WM_MOVERESIZE_SIZE_TOPRIGHT     2
  #define _NET_WM_MOVERESIZE_SIZE_RIGHT        3
  #define _NET_WM_MOVERESIZE_SIZE_BOTTOMRIGHT  4
  #define _NET_WM_MOVERESIZE_SIZE_BOTTOM       5
  #define _NET_WM_MOVERESIZE_SIZE_BOTTOMLEFT   6
  #define _NET_WM_MOVERESIZE_SIZE_LEFT         7
  #define _NET_WM_MOVERESIZE_MOVE              8   /* Movement only */
 +#define _NET_WM_MOVERESIZE_SIZE_KEYBOARD     9   /* size via keyboard */
 +#define _NET_WM_MOVERESIZE_MOVE_KEYBOARD    10   /* move via keyboard */

This probably interacts with the ALLOWED_ACTIONS hint, in that some
WM's may not support keyboard move/resize in the "enter a special
mode" way that Windows does. So we may also need a separate flag for
keyboard move/resize in the allowed actions.

Havoc






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]