Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

Bug using Lazarus under KDE (minimizing)

19 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!!

Under Gnome, FVWM2 this never happened. I'm running Lazarus v0.9.25 r15115M i386-linux-gtk. This is enough to make me stop using Lazarus, as I switch desktops quite often during my work.

Anybody got a work-around or other solution for this? And compiling Lazarus to GTK2 or KDE is not an option. GTK1 is far more stable and responsive.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 7 lines
Hi, Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!!

I think there must be some setting on your desktop which causes this.

I don't have the effect you describe, and I use KDE and Lazarus (GTK1) since years. I tested just now, and lazarus is not .

Reply by email

zeljko
to Graeme Geldenhuys: Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my…
Graeme Geldenhuys wrote 7 lines
Hi, Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!!

What KDE version ? I'm using 3.5.2 and never had such problem.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my…

2008/6/6 Graeme Geldenhuys :

r15115M i386-linux-gtk. This is enough to make me stop using Lazarus, as I switch desktops quite often during my work.

Minor typo. I meant: Stop using Lazarus under KDE. :-)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Vincent Snijders
to Michael Van Canneyt: I think there must be some setting on your desktop which causes this. I don't have the…
Michael Van Canneyt wrote 16 lines
On Fri, 6 Jun 2008, Graeme Geldenhuys wrote: > Hi, > > Another issue when using Lazarus under KDE. This seems to be a Lazarus > issue, because my fpGUI based applications do not behave like this. > Every time I switch desktops and return to the desktop that is running > Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I > have to restore one by one, every time!! I think there must be some setting on your desktop which causes this. I don't have the effect you describe, and I use KDE and Lazarus (GTK1) since years. I tested just now, and lazarus is not minimized at all.

There are more people interested in this setting:
http://bugs.freepascal.org/view.php?id=11331

Vincent

Reply by email

Marc Santhoff
to Graeme Geldenhuys: Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my…
Graeme Geldenhuys wrote 15 lines
Hi, Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!! Under Gnome, FVWM2 this never happened. I'm running Lazarus v0.9.25 r15115M i386-linux-gtk. This is enough to make me stop using Lazarus, as I switch desktops quite often during my work. Anybody got a work-around or other solution for this? And compiling Lazarus to GTK2 or KDE is not an option. GTK1 is far more stable and responsive.

Me too.

When using WindowMaker on FreeBSD and the same happens every time when switching virtual desktops.

If single windows (editor+messages) are restored (not the main window) they mostly hold their state after switching and (CTRL-)F9 works, too.

svn rev. 14640 here ...

Marc

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt: I think there must be some setting on your desktop which causes this. I don't have the…

2008/6/6 Michael Van Canneyt :

I think there must be some setting on your desktop which causes this.

In that case, I would have expected all applications to be minimized. I placed a Qt (Virtual Box), fpGUI (UI Designer), KDE (Konsole) and GTK1 (Lazarus is the only one I have), one of each, application in the same desktop. Switch to another desktop and then back again. Lazarus is the only one minimized! :-(

Luckily I found the 'Restore all' option when you right click on the Lazarus taskbar item. This work-around is a bit quicker than one window at a time. Still annoying though.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Vincent Snijders: There are more people interested in this setting:…

2008/6/6 Vincent Snijders :

There are more people interested in this setting: http://bugs.freepascal.org/view.php?id=11331

Umm, the bug report says "...and applications created with Lazarus." I'll try creating a GTK1 app with Lazarus and see what that does. I'll also try and hunt down a GTK1 application not created by Lazarus, to see what that does.

This might prove it's a LCL bug, rather that a GTKx back. BTW: My GTK2 applications (not created with Lazarus) don't have this problem, so that rules out one possibility.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Chris Kirkpatrick
to Graeme Geldenhuys: Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my…
Graeme Geldenhuys wrote 9 lines
Hi, Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!!

I have experienced this problem in KDE, too (using Lazarus with GTK2). It's annoying, but you don't have to restore all the windows one at a time: right-click on the Lazarus icon in the taskbar at the bottom of the screen and you are offered a number of options including 'Restore all'. This does the trick!!

Regards - Chris

Reply by email

Graeme Geldenhuys
to Marc Santhoff: Using GTK1 and GTK2 triggers this behaviour. Marc

2008/6/6 Marc Santhoff :

Using GTK1 and GTK2 triggers this behaviour.

I can also confirm that it's been around for some time and only related to LCL based apps. I have an LCL-GTK1 app compiled in Dec 2007 which also minimizes after switching virtual desktops. Non LCL apps don't seem to have this issue. Firefox and Thunderbird do not minimize when switching virtual desktops under KDE.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys: 2008/6/6 Vincent Snijders : Umm, the bug report says "...and applications created with…
Show quoted text 13 lines
2008/6/6 Vincent Snijders : > > There are more people interested in this setting: > http://bugs.freepascal.org/view.php?id=11331 Umm, the bug report says "...and applications created with Lazarus." I'll try creating a GTK1 app with Lazarus and see what that does. I'll also try and hunt down a GTK1 application not created by Lazarus, to see what that does. This might prove it's a LCL bug, rather that a GTKx back. BTW: My GTK2 applications (not created with Lazarus) don't have this problem, so that rules out one possibility.

It's probably related to the Form.WindowState events. Switching to another desktop and minimize are pretty much the same under gtk1.

Mattias

Reply by email

Valdas Jankūnas
to Chris Kirkpatrick: I have experienced this problem in KDE, too (using Lazarus with GTK2). It's annoying, but…

Chris Kirkpatrick ra??:

Show quoted text 17 lines
Graeme Geldenhuys wrote: > Hi, > > Another issue when using Lazarus under KDE. This seems to be a Lazarus > issue, because my fpGUI based applications do not behave like this. > Every time I switch desktops and return to the desktop that is running > Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I > have to restore one by one, every time!! > > I have experienced this problem in KDE, too (using Lazarus with GTK2). It's annoying, but you don't have to restore all the windows one at a time: right-click on the Lazarus icon in the taskbar at the bottom of the screen and you are offered a number of options including 'Restore all'. This does the trick!!

only if Grouping is enabled, or if kdm automatically groups windows of apps (when taskbar "overflows").

Valdas Jank?nas

Reply by email

Bogusław Brandys
to Chris Kirkpatrick: I have experienced this problem in KDE, too (using Lazarus with GTK2). It's annoying, but…
Chris Kirkpatrick wrote 18 lines
Graeme Geldenhuys wrote: > Hi, > > Another issue when using Lazarus under KDE. This seems to be a Lazarus > issue, because my fpGUI based applications do not behave like this. > Every time I switch desktops and return to the desktop that is running > Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I > have to restore one by one, every time!! > > I have experienced this problem in KDE, too (using Lazarus with GTK2). It's annoying, but you don't have to restore all the windows one at a time: right-click on the Lazarus icon in the taskbar at the bottom of the screen and you are offered a number of options including 'Restore all'. This does the trick!! Regards - Chris

As we are talking about it I realized that sometimes the same problem occurs under windows, except only main window (that one with toolbar) is not shown and the solution is to click on taskbar button of Lazarus and use 'Restore' option.

Regards
Boguslaw

Reply by email

Paulo Malheiros
to Graeme Geldenhuys: Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my…

One possible workaround is switching Virtual Desktop via the mouse middle button click in the Desktop.
A list of applications appears divided in Desktops, if you choose an application in another desktop it won't minimize Lazarus. It works for those who don't use maximized windows and have a bit of desktop always visible.

Paulo

Quoting Graeme Geldenhuys :

Show quoted text 28 lines
Hi, Another issue when using Lazarus under KDE. This seems to be a Lazarus issue, because my fpGUI based applications do not behave like this. Every time I switch desktops and return to the desktop that is running Lazarus, all the Lazarus windows are minimized. That's 5-7 windows I have to restore one by one, every time!! Under Gnome, FVWM2 this never happened. I'm running Lazarus v0.9.25 r15115M i386-linux-gtk. This is enough to make me stop using Lazarus, as I switch desktops quite often during my work. Anybody got a work-around or other solution for this? And compiling Lazarus to GTK2 or KDE is not an option. GTK1 is far more stable and responsive. Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Graeme Geldenhuys
to Paulo Malheiros

2008/6/10 Paulo Malheiros :

Show quoted text 6 lines
One possible workaround is switching Virtual Desktop via the mouse middle button click in the Desktop. A list of applications appears divided in Desktops, if you choose an application in another desktop it won't minimize Lazarus. It works for those who don't use maximized windows and have a bit of desktop always visible.

That does seem to work, thanks. The only problem now is to retrain my hand not to click the virtual desktop icons, but instead use the middle mouse button. :)

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Paulo Malheiros
to Graeme Geldenhuys

I think I've isolated the problem.

If you start Lazarus and change Desktop it will probably minimize. If you restore all and change desktop it will probably minimize again. This we all know so far... But if after restoring you move the main Lazarus window (top window) it will never minimize again. I've tested this under 0.9.24 and svn 15397.

Apparently Lazarus is starting in an undefined geometry for KDE and changing desktop makes KDE update all window geometries which forces the minimize. Moving the top window somehow "tells" KDE its window geometry, I think.

If you minimize Lazarus by clicking the minimize button the problem returns again, so restoring Lazarus window doesn't update its geometry state to KDE.

I hope this helps for a possible solution.

Best regards,
Paulo

Quoting Graeme Geldenhuys :

Show quoted text 26 lines
2008/6/10 Paulo Malheiros : > One possible workaround is switching Virtual Desktop via the mouse > middle button click in the Desktop. > A list of applications appears divided in Desktops, if you choose an > application in another desktop it won't minimize Lazarus. > It works for those who don't use maximized windows and have a bit of > desktop always visible. That does seem to work, thanks. The only problem now is to retrain my hand not to click the virtual desktop icons, but instead use the middle mouse button. :) Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Paulo Malheiros
to Graeme Geldenhuys: 2008/6/10 Paulo Malheiros : That does seem to work, thanks. The only problem now is to…

I think I've isolated the problem.

If you start Lazarus and change Desktop it will probably minimize. If you restore all and change desktop it will probably minimize again. This we all know so far... But if after restoring you move the main Lazarus window (top window) it will never minimize again. I've tested this under 0.9.24 and svn 15397.

Apparently Lazarus is starting in an undefined geometry for KDE and changing desktop makes KDE update all window geometries which forces the minimize. Moving the top window somehow "tells" KDE its window geometry, I think.

If you minimize Lazarus by clicking the minimize button the problem returns again, so restoring Lazarus window doesn't update its geometry state to KDE.

I hope this helps for a possible solution.

Best regards,
Paulo

Quoting Graeme Geldenhuys :

Show quoted text 26 lines
2008/6/10 Paulo Malheiros : > One possible workaround is switching Virtual Desktop via the mouse > middle button click in the Desktop. > A list of applications appears divided in Desktops, if you choose an > application in another desktop it won't minimize Lazarus. > It works for those who don't use maximized windows and have a bit of > desktop always visible. That does seem to work, thanks. The only problem now is to retrain my hand not to click the virtual desktop icons, but instead use the middle mouse button. :) Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email