summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-25 21:27:16 +0000
committerDana Jansens <danakj@orodu.net>2003-04-25 21:27:16 +0000
commit92d3f2342db3d3bfd5d41a6c3dc165efa7766ffa (patch)
tree7a2167c4fe40b93838d7cbb91d13442367532c49 /openbox/action.c
parent16a9ac018ed77e245e873be60729be509fa1ce92 (diff)
add helper functions for manipulating the focus_order list.
move the focus popup into focus.c, out of action.c allow cycling to iconic windows, which are kept at the bottom of the focus_order lists.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 41e174d9..ec5230e4 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1,12 +1,10 @@
#include "client.h"
-#include "grab.h"
#include "focus.h"
#include "moveresize.h"
#include "menu.h"
#include "prop.h"
#include "stacking.h"
#include "frame.h"
-#include "framerender.h"
#include "screen.h"
#include "action.h"
#include "dispatch.h"
@@ -683,49 +681,11 @@ void action_showmenu(union ActionData *data)
}
}
-static void popup_cycle(Client *c, gboolean hide)
-{
- XSetWindowAttributes attrib;
- static Window coords = None;
-
- if (coords == None) {
- attrib.override_redirect = TRUE;
- coords = XCreateWindow(ob_display, ob_root,
- 0, 0, 1, 1, 0, render_depth, InputOutput,
- render_visual, CWOverrideRedirect, &attrib);
- g_assert(coords != None);
-
- grab_pointer(TRUE, None);
-
- XMapWindow(ob_display, coords);
- }
-
- if (hide) {
- XDestroyWindow(ob_display, coords);
- coords = None;
-
- grab_pointer(FALSE, None);
- } else {
- Rect *a;
- Size s;
-
- a = screen_area(c->desktop);
-
- framerender_size_popup_label(c->title, &s);
- XMoveResizeWindow(ob_display, coords,
- a->x + (a->width - s.width) / 2,
- a->y + (a->height - s.height) / 2,
- s.width, s.height);
- framerender_popup_label(coords, &s, c->title);
- }
-}
-
void action_cycle_windows(union ActionData *data)
{
Client *c;
c = focus_cycle(data->cycle.forward, data->cycle.linear, data->cycle.final,
data->cycle.cancel);
- popup_cycle(c, !c || data->cycle.final || data->cycle.cancel);
}