summaryrefslogtreecommitdiff
path: root/openbox/moveresize.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-23 20:22:28 -0400
committerDana Jansens <danakj@orodu.net>2008-01-20 01:36:54 -0500
commit452627a51ce38229533dfe5d8eeb877b0918d02c (patch)
tree6be855a5245e4e2f9acbb6dcbc72710675799c61 /openbox/moveresize.c
parentfe57b2f2f03ef3c608be7082e3a72630eaf77974 (diff)
Move the main loop out into the libobt
Diffstat (limited to 'openbox/moveresize.c')
-rw-r--r--openbox/moveresize.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 675cbe9c..4349f748 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -25,7 +25,6 @@
#include "frame.h"
#include "openbox.h"
#include "resist.h"
-#include "mainloop.h"
#include "modkeys.h"
#include "popup.h"
#include "moveresize.h"
@@ -311,7 +310,7 @@ void moveresize_end(gboolean cancel)
moveresize_alarm = None;
}
- ob_main_loop_timeout_remove(ob_main_loop, sync_timeout_func);
+ obt_main_loop_timeout_remove(ob_main_loop, sync_timeout_func);
#endif
client_configure(moveresize_client,
@@ -396,10 +395,10 @@ static void do_resize(void)
waiting_for_sync = TRUE;
- ob_main_loop_timeout_remove(ob_main_loop, sync_timeout_func);
- ob_main_loop_timeout_add(ob_main_loop, G_USEC_PER_SEC * 2,
- sync_timeout_func,
- NULL, NULL, NULL);
+ obt_main_loop_timeout_remove(ob_main_loop, sync_timeout_func);
+ obt_main_loop_timeout_add(ob_main_loop, G_USEC_PER_SEC * 2,
+ sync_timeout_func,
+ NULL, NULL, NULL);
}
#endif
@@ -578,10 +577,10 @@ static void do_edge_warp(gint x, gint y)
cancel_edge_warp();
if (dir != (ObDirection)-1) {
edge_warp_odd = TRUE; /* switch on the first timeout */
- ob_main_loop_timeout_add(ob_main_loop,
- config_mouse_screenedgetime * 1000,
- edge_warp_delay_func,
- NULL, NULL, NULL);
+ obt_main_loop_timeout_add(ob_main_loop,
+ config_mouse_screenedgetime * 1000,
+ edge_warp_delay_func,
+ NULL, NULL, NULL);
}
edge_warp_dir = dir;
}
@@ -589,7 +588,7 @@ static void do_edge_warp(gint x, gint y)
static void cancel_edge_warp(void)
{
- ob_main_loop_timeout_remove(ob_main_loop, edge_warp_delay_func);
+ obt_main_loop_timeout_remove(ob_main_loop, edge_warp_delay_func);
}
static void move_with_keys(gint keycode, gint state)