summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 01:59:18 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 01:59:18 +0000
commit17b927ab6dcaa00ab5a68647cab4a514235e5892 (patch)
treeb08d7800fa748a00d932e827e8fc46879513878c
parent9586e3bf1482a30e29f230a1a987386fcdcec2c9 (diff)
some typos
-rw-r--r--openbox/client.c2
-rw-r--r--openbox/menuframe.c2
-rw-r--r--openbox/place.c5
3 files changed, 5 insertions, 4 deletions
diff --git a/openbox/client.c b/openbox/client.c
index df494a9f..71be0f94 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -1980,7 +1980,7 @@ void client_update_strut(ObClient *self)
if (!got &&
PROP_GETA32(self->window, net_wm_strut, cardinal, &data, &num)) {
if (num == 4) {
- const Rect *a;
+ Rect *a;
got = TRUE;
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 4f5a34d8..fdb24afb 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -952,7 +952,7 @@ gboolean menu_frame_show_topmenu(ObMenuFrame *self, gint x, gint y,
/* find the monitor the menu is on */
for (i = 0; i < screen_num_monitors; ++i) {
- Rect a = screen_physical_area_monitor(i);
+ Rect *a = screen_physical_area_monitor(i);
gboolean contains = RECT_CONTAINS(*a, x, y);
g_free(a);
if (contains) {
diff --git a/openbox/place.c b/openbox/place.c
index 2d14f5bd..6bcfe9d8 100644
--- a/openbox/place.c
+++ b/openbox/place.c
@@ -112,15 +112,16 @@ static Rect **pick_head(ObClient *c)
screen_pointer_pos(&px, &py);
- for (i = 0; i < screen_num_monitors; i++)
+ for (i = 0; i < screen_num_monitors; i++) {
Rect *monitor = screen_physical_area_monitor(i);
gboolean contain = RECT_CONTAINS(*monitor, px, py);
g_free(monitor);
- if (contain)
+ if (contain) {
add_choice(choice, i);
ob_debug("placement adding choice %d for mouse pointer\n", i);
break;
}
+ }
/* add any leftover choices */
for (i = 0; i < screen_num_monitors; ++i)