projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
734a750
)
window.c: Make title not const
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 25 Jan 2011 17:45:37 +0000
(12:45 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 25 Jan 2011 17:45:37 +0000
(12:45 -0500)
We now strdup it.
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
cad8040
..
5f8be17
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-86,7
+86,7
@@
struct window {
struct display *display;
struct window *parent;
struct wl_surface *surface;
- c
onst c
har *title;
+ char *title;
struct rectangle allocation, saved_allocation, server_allocation;
int x, y;
int resize_edges;
@@
-1236,7
+1236,7
@@
window_set_keyboard_focus_handler(struct window *window,
void
window_set_title(struct window *window, const char *title)
{
- free(
(void*)
window->title);
+ free(window->title);
window->title = strdup(title);
}