~ubuntu-branches/debian/sid/openbox/sid

« back to all changes in this revision

Viewing changes to openbox/actions/move.c

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde, Nico Golde, Eugenio Paolantonio
  • Date: 2011-10-03 22:59:30 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20111003225930-tdvyax5tx63dyoez
Tags: 3.5.0-1
[Nico Golde]
* New upstream release (Closes: #638783).
  - Fix crashes in the menu code (Closes: #563891).
* Add Brazilian translation to openbox.desktop,
  thanks Sérgio Cipolla (Closes: #627912).
* Remove 06_fix_swap_byte_order.patch, applied upstream.
* Bump debhelper dependency to >= 7.0.50~ due to override.
* Remove CHANGELOG from openbox.docs to prevent double installation.
* Add 02_fix_freedesktop_compliance.dpatch desktop file to
  /usr/share/applications.

[Eugenio Paolantonio]
* debian/patches:
  - Disabled 03_place_windows_in_quadrants.patch
  - Updated 01_rc.xml.patch and 06_fix_swap_byte_order.patch
  - Removed 04_fix_ftbfs_no-add-needed.patch and 20_24bits_support.patch
* debian/control:
  - Added myself to the Uploaders.
  - Build-Depends: removed libxau-dev, libxft-dev and python-xdg;
    added libimlib2-dev
  - openbox Suggests: added python-xdg
  - libobrender21 renamed to libobrender27
  - libobparser21 renamed to libobt0
* debian/rules:
  - Rewrote using a simpler debhelper syntax
  - Moved the install pass to openbox.install
* debian/*.{install,links,dirs}:
  - Updated.
* debian/openbox.xsession:
  - Removed. Openbox now ships it by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "openbox/actions.h"
2
 
#include "openbox/prop.h"
3
2
#include "openbox/moveresize.h"
 
3
#include "obt/prop.h"
4
4
 
5
5
static gboolean run_func(ObActionsData *data, gpointer options);
6
6
 
8
8
{
9
9
    actions_register("Move",
10
10
                     NULL, NULL,
11
 
                     run_func,
12
 
                     NULL, NULL);
 
11
                     run_func);
13
12
}
14
13
 
15
14
/* Always return FALSE because its not interactive */
19
18
        guint32 corner;
20
19
 
21
20
        corner = data->button != 0 ?
22
 
            prop_atoms.net_wm_moveresize_move :
23
 
            prop_atoms.net_wm_moveresize_move_keyboard;
 
21
            OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE) :
 
22
            OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD);
24
23
 
25
24
        moveresize_start(data->client, data->x, data->y, data->button, corner);
26
25
    }