I really would like have minimized windows in taskbar in desktops like
GNOME, KDE, etc. But since I don't understand how works gnustep-back, I
tried this in GUI side. Attached a small patch that do this. I don't
know if in this way I am breaking something in back side, but works. I'm
using the Interface style (Windows95) for know when minimize the windows
at taskbar, but I think would be better other var (maybe
GSBackUsesNativeTaskbar, but this is specific for back). What think
about this?
Index: Source/NSWindow.m
===================================================================
--- Source/NSWindow.m	(revision 32597)
+++ Source/NSWindow.m	(working copy)
@@ -2818,7 +2818,9 @@
   /*
    * Ensure that we have a miniwindow counterpart.
    */
-  if (_counterpart == 0 && [srv appOwnsMiniwindow])
+  if (_counterpart == 0 && [srv appOwnsMiniwindow] &&
+      (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil)
+       != NSWindows95InterfaceStyle))
     {
       NSWindow *mini;
       NSMiniWindowView *v;
@@ -2837,7 +2839,10 @@
       RELEASE(v);
     }
   [self _lossOfKeyOrMainWindow];
-  [srv miniwindow: _windowNum];
+  if (_counterpart != 0)
+    {
+      [srv miniwindow: _windowNum];
+    }
   _f.visible = NO;
   
   /*
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to