[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd)
From: |
Jonathan Kyle Mitchell |
Subject: |
bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd) |
Date: |
Wed, 27 Jun 2018 23:22:23 -0500 |
On Wed, Jun 27, 2018 at 10:21 AM Carlos Pita <carlosjosepita@gmail.com> wrote:
>
> Yes, but the point is to hook something like that on
> maximized/unmaximized events, which I don't see how to do.
Since maximizing a frame changes the window size, couldn't you hook
into window-size-change-functions to achieve the desired effect?
Something like this perhaps:
(defun hide-titlebar-when-maximized (frame)
(if (eq 'maximized (alist-get 'fullscreen (frame-parameters frame)))
(set-frame-parameter frame 'undecorated t)
(set-frame-parameter frame 'undecorated nil)))
(add-hook 'window-size-change-functions 'hide-titlebar-when-maximized)
--
Jonathan Kyle Mitchell
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Carlos Pita, 2018/06/25
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), martin rudalics, 2018/06/28
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Robert Pluim, 2018/06/28
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), martin rudalics, 2018/06/29
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Robert Pluim, 2018/06/29
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), martin rudalics, 2018/06/30
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Jonathan Kyle Mitchell, 2018/06/30
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Carlos Pita, 2018/06/30
- bug#31968: 26.1.50; Allow to hide title bar on maximize (gtk/gnome/csd), Carlos Pita, 2018/06/30