edelib.3592.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. -- a/src/WindowUtils.cpp
  2. +++ b/src/WindowUtils.cpp
  3. @@ -1,5 +1,5 @@
  4. /*
  5. - * $Id: WindowUtils.cpp 3106 2011-10-21 20:26:08Z karijes $
  6. + * $Id: WindowUtils.cpp 3592 2014-12-02 12:48:07Z karijes $
  7. *
  8. * Window utils
  9. * Copyright (c) 1998-2006 by Bill Spitzak and others
  10. @@ -33,8 +33,10 @@
  11. * These are defined in FLTK as hidden variables for some internal hacks, but are used here.
  12. * XXX: possible changes in future FLTK versions
  13. */
  14. +#if 0
  15. extern char fl_show_iconic;
  16. extern int fl_disable_transient_for;
  17. +#endif
  18. EDELIB_NS_BEGIN
  19. @@ -165,7 +167,7 @@
  20. XChangeProperty(fl_display, xp->xid, XA_WM_CLASS, XA_STRING, 8, 0, (unsigned char *)buffer, p-buffer-1);
  21. }
  22. - if(win->non_modal() && xp->next && !fl_disable_transient_for) {
  23. + if(win->non_modal() && xp->next /* && !fl_disable_transient_for */) {
  24. // find some other window to be "transient for":
  25. Fl_Window* wp = xp->next->w;
  26. while(wp->parent())
  27. @@ -193,13 +195,14 @@
  28. XWMHints *hints = XAllocWMHints();
  29. hints->input = True;
  30. hints->flags = InputHint;
  31. -
  32. +#if 0
  33. if(fl_show_iconic) {
  34. hints->flags |= StateHint;
  35. hints->initial_state = IconicState;
  36. fl_show_iconic = 0;
  37. showit = 0;
  38. }
  39. +#endif
  40. // This is not removed so it can be used with windows inherited from Fl_Window
  41. if(win->icon()) {