summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:59:47 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-12-02 15:59:47 +0000
commitc4c164a707138d06c15d7204bddeee1784a14fae (patch)
tree86f78eb995f4550f25efdb8fa265f3b714677bde /fluid
parentd9ed48be5ce03ed2eaa3a6eada68a1c6c10f50ef (diff)
Fluid paste bug fix from Bill.
git-svn-id: file:///fltk/svn/fltk/trunk@113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Window_Type.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index bf19200e2..4859e42ee 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Window_Type.cxx,v 1.8 1998/11/18 18:40:44 mike Exp $"
+// "$Id: Fl_Window_Type.cxx,v 1.9 1998/12/02 15:59:47 mike Exp $"
//
// Window type code for the Fast Light Tool Kit (FLTK).
//
@@ -656,6 +656,7 @@ void Fl_Window_Type::write_properties() {
if (o->visible()) write_string("visible");
}
+extern int pasteoffset;
void Fl_Window_Type::read_property(const char *c) {
if (!strcmp(c,"modal")) {
modal = 1;
@@ -668,6 +669,9 @@ void Fl_Window_Type::read_property(const char *c) {
} else if (!strcmp(c,"xclass")) {
storestring(read_word(),xclass);
((Fl_Window*)o)->xclass(xclass);
+ } else if (!strcmp(c,"xywh")) {
+ Fl_Widget_Type::read_property(c);
+ pasteoffset = 0; // make it not apply to contents
} else {
Fl_Widget_Type::read_property(c);
}
@@ -693,5 +697,5 @@ int Fl_Window_Type::read_fdesign(const char* name, const char* value) {
}
//
-// End of "$Id: Fl_Window_Type.cxx,v 1.8 1998/11/18 18:40:44 mike Exp $".
+// End of "$Id: Fl_Window_Type.cxx,v 1.9 1998/12/02 15:59:47 mike Exp $".
//