[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEW: Window: 'StartMove()


Le 14/05/2025 à 08:53, Fabien Bodard a écrit :


Fabien Bodard

Le mar. 13 mai 2025 à 23:19, Lee <t.lee.davidson@xxxxxxxxx <mailto:t.lee.davidson@xxxxxxxxx>> a écrit :

    On 5/13/25 5:17 PM, Charlie Reinl wrote:
     > Am Dienstag, dem 13.05.2025 um 23:07 +0200 schrieb Fabien Bodard:
     >> method for CSD
     >
     > sorry what means that CSD

    Client-Side Decoration


Is the way Gnome use for drawing osx style window and titlebar.

The window manager provide only a no decorations window and the toolkit have to deal with border décoration (shadow also), resizing/moving (quite complicated as you have to discuss with (xorg or wayland).

Benoît hate this way to do. But I like the combo Titlebar/toolbox for the gain of space on small screen.

For example.. for me it will be great if the title bar vanish when the ide is maximized. 😊


Yes, this is all or nothing. I.e. all decorations from the window manager, or none ("borderless" windows).

You can't have a server-side decorated window with no title. If you want no title, you have to use a borderless window and implement all the drawing client-side.

The 'StartMove()' and 'StartResize()' methods are actually provided by the X11 window manager or the Wayland window manager because it's impossible to implement window move or resize client-side correctly. So "they" were aware of the problems, but decided to fix only part of them.

--
Benoît Minisini.


References:
NEW: Window: 'StartMove()Fabien Bodard <gambas.fr@xxxxxxxxx>
Re: NEW: Window: 'StartMove()Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: NEW: Window: 'StartMove()Fabien Bodard <gambas.fr@xxxxxxxxx>
Re: NEW: Window: 'StartMove()Charlie Reinl <Karl.Reinl@xxxxxxxxxx>
Re: NEW: Window: 'StartMove()Lee <t.lee.davidson@xxxxxxxxx>
Re: NEW: Window: 'StartMove()Fabien Bodard <gambas.fr@xxxxxxxxx>