Sign in Join

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

Mailing lists / lazarus / 2010-03

gtk2 and windows z order

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Martin

I recently saw some StayOntop fixes for GTK2.

But does anyone know about the issue, that modal dialogs show *below* all other windows? That applies for the code-completion-drop-down-window too.

It happens for me, running gtk2 on Windows (Vista) using the gtk libraries that came with gimp.

E.g when I close the ide , the "save project" dialog is hiden behind the source-editor. But the source-editor is locked (because a modal form is shown), so I cannot move it away.
If I click another app in the task bar, and then back to Lazarus it will (most often) be ok.

Same for the find-dialog, enviroment, .....

Martin

Reply by email

Duncan Parsons
to Martin

How to fix it, I don't know; but it was an issue that first arrived with W2K (NT and W9x were fine). I can't remember how I resolved it with Delphi; but clearly the GTK authors have the same issue with their underlying abstractions.

Tbh tho', it's not something I've noticed with GIMP on XP; but that's not to say that it's not there!

DSP

Earlier message 27 lines
-----Original Message----- From: Martin [mailto:] Sent: 31 March 2010 13:12 To: Lazarus mailing list Subject: [Lazarus] gtk2 and windows z order I recently saw some StayOntop fixes for GTK2. But does anyone know about the issue, that modal dialogs show *below* all other windows? That applies for the code-completion-drop-down-window too. It happens for me, running gtk2 on Windows (Vista) using the gtk libraries that came with gimp. E.g when I close the ide , the "save project" dialog is hiden behind the source-editor. But the source-editor is locked (because a modal form is shown), so I cannot move it away. If I click another app in the task bar, and then back to Lazarus it will (most often) be ok. Same for the find-dialog, enviroment, ..... Martin --

Reply by email

zeljko
to Martin: I recently saw some StayOntop fixes for GTK2. But does anyone know about the issue, that…
Martin wrote 16 lines
I recently saw some StayOntop fixes for GTK2. But does anyone know about the issue, that modal dialogs show *below* all other windows? That applies for the code-completion-drop-down-window too. It happens for me, running gtk2 on Windows (Vista) using the gtk libraries that came with gimp. E.g when I close the ide , the "save project" dialog is hiden behind the source-editor. But the source-editor is locked (because a modal form is shown), so I cannot move it away. If I click another app in the task bar, and then back to Lazarus it will (most often) be ok. Same for the find-dialog, enviroment, .....

seen that with qt too when calling printer properties dialog, it stays behind , but it's probably because we are using LCL loop for all dialogs for some time, I must check if it's a problem.
With gtk2, never seen such problem on linux.

zeljko

Reply by email

Flávio Etrusco
to zeljko
zeljko wrote 25 lines
On Wednesday 31 March 2010 14:12, Martin wrote: > I recently saw some StayOntop fixes for GTK2. > > But does anyone know about the issue, that modal dialogs show *below* > all other windows? That applies for the code-completion-drop-down-window > too. > > It happens for me, running gtk2 on Windows (Vista) using the gtk > libraries that came with gimp. > > E.g when I close the ide , the "save project" dialog is hiden behind the > source-editor. But the source-editor is locked (because a modal form is > shown), so I cannot move it away. > If I click another app in the task bar, and then back to Lazarus it will > (most often) be ok. > > Same for the find-dialog, enviroment, ..... seen that with qt too when calling printer properties dialog, it stays behind , but it's probably because we are using LCL loop for all dialogs for some time, I must check if it's a problem. With gtk2, never seen such problem on linux. zeljko

I don't remember seeing this on gtk2 with metacity either, but I remember seeing this on WinXP. And on Delphi it's always been present, up to Delphi2007. As the LCL, Delphi had code to store and restore z-order on ShowModal, but it's easy to break the code using native calls (maybe even without this)...

Fl?vio

Reply by email