After much mucking around with deleting config files and things, I've discovered that it wan't a 'lock' setting on any of my apps that was causing my maximizing issue. It seems to be an issue when creating a window, and maximizing it directly after.

I have exited E17, deleted my entire .e folder, and started again. Then, without *any* modification at all, I've run this code:

---

#!/usr/bin/perl

use Gtk2 -init;

sub startup {
$window = Gtk2::Window->new;
       $window->signal_connect( destroy => sub { Gtk2->main_quit; } );
       $window->set_border_width(10);
my $button = Gtk2::Button->new("Hello World");
       $window->add($button);
       $button->show;

       $window->show;
       $window->maximize;

}

{
       startup;
       Gtk2->main;
}

---

This demonstrates my problem. For me, the app starts with a small window in the top-left corner of the screen. The button thinks it's parent has been maximized, and only a very small portion of it is visible. At this point, the windows can't be resized ALT middle-click dragging ... as if it's already maximized. Clicking the maximize / restore button ( I'm not sure which one it's representing in this state ) makes all the window buttons ( ie minimize, restore, close ) disappear, and gives slight graphical corruption along the bottom & right edges of the window. At this point, ALT middle-click dragging can be used to resize the window, and once you make an adjustment, the window buttons return, and the window behaves normally.

However, I've found that if I modify the above code so that the $window->maximize line is immediately *before* the $window->show line, everything works perfectly. I will of course change all my code to maximize first and show later.

I have also seen behaviour like this ( show window first, then maximize ) coming from other apps, particularly things like visualisation plugins for xmms, xine, and other cool graphical things.

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: [EMAIL PROTECTED]
website: http://www.nusconsulting.com.au


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to