I have a TitleAreaDialog
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX | SWT.MIN);
I searched on web and found out that this could be caused by os:
why maximize and minimize option is missing in linux but working in windows
I have run the command
gsettings set org.gnome.desktop.wm.preferences button-layout :minimize,maximize,close
but the result was the same so it is leads me that either the set wasn't succeed or it is other problem.
For some windows the all 3 buttons are displayed but only for some only close is displayed. Can this be caused by an OS setup or it is other problem?
For me (Gnome 3.22) worked:
gsettings set org.gnome.desktop.wm.preferences button-layout 'appmenu:minimize,maximize,close'
together with
gsettings set org.gnome.shell.extensions.classic-overrides button-layout 'appmenu:minimize,maximize,close'
Following elsewhere given answer doesn't work anymore: gsettings set org.gnome.shell.overrides button-layout close,minimize,maximize:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.