]> jfr.im git - irc/hexchat/hexchat.git/commit
Change preferences sub-dialogs to be modal
authorPatrick Griffis <redacted>
Sat, 16 Apr 2022 23:41:34 +0000 (18:41 -0500)
committerPatrick Griffis <redacted>
Sat, 16 Apr 2022 23:41:34 +0000 (18:41 -0500)
commit13b6a40b9c3d1f2215ff87cdaff9e38a4020ee92
tree29b3d01d4be5596c2aa2c5321ca21bbf3557ae10
parentdd167b4c8393677f465c03d66b438d519c43fb87
Change preferences sub-dialogs to be modal

This solves the issue where the parent dialog is closed and then
the child dialog is used.

This is however only a partial fix:

- Many other dialogs throughout the codebase do not currently have
  parent windows and need to be refactored.

- Not all window managers respect modal so users can still trigger
  bugs. We can be more defensive against this but it requires more
  refactoring.

Closes #2686
12 files changed:
src/common/fe.h
src/fe-gtk/chanlist.c
src/fe-gtk/dccgui.c
src/fe-gtk/fe-gtk.c
src/fe-gtk/gtkutil.c
src/fe-gtk/gtkutil.h
src/fe-gtk/menu.c
src/fe-gtk/plugingui.c
src/fe-gtk/rawlog.c
src/fe-gtk/setup.c
src/fe-gtk/textgui.c
src/fe-gtk/urlgrab.c