all repos — openbox @ 17bc51aab8be25cd44c55eb0a652c92518bd9b0f

openbox fork - make it a bit more like ryudo

openbox/moveresize.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-

   moveresize.h for the Openbox window manager
   Copyright (c) 2003-2007   Dana Jansens

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   See the COPYING file for a copy of the GNU General Public License.
*/

#ifndef __moveresize_h
#define __moveresize_h

#include <glib.h>

#ifdef SYNC
#include <X11/extensions/sync.h>
#endif

struct _ObClient;

typedef enum {
    OB_RESIZE_POS_CENTER,
    OB_RESIZE_POS_TOP,
    OB_RESIZE_POS_FIXED
} ObResizePopupPos;

extern gboolean moveresize_in_progress;
extern struct _ObClient *moveresize_client;
#ifdef SYNC
extern XSyncAlarm moveresize_alarm;
#endif

void moveresize_startup(gboolean reconfig);
void moveresize_shutdown(gboolean reconfig);

/*! @param corner This is one of the prop_atoms.net_wm_moveresize_ atoms */
void moveresize_start(struct _ObClient *c,
                      gint x, gint y, guint button, guint32 corner);
void moveresize_end(gboolean cancel);

gboolean moveresize_event(XEvent *e);

#endif