linux: Make modal dialog show more smoothly
This commit is contained in:
parent
9aa7291627
commit
02acce8991
1 changed files with 2 additions and 1 deletions
|
@ -837,9 +837,10 @@ void NativeWindowViews::SetParentWindow(NativeWindow* parent) {
|
||||||
|
|
||||||
void NativeWindowViews::SetModal(bool modal) {
|
void NativeWindowViews::SetModal(bool modal) {
|
||||||
#if defined(USE_X11)
|
#if defined(USE_X11)
|
||||||
|
SetWindowType(GetAcceleratedWidget(), modal ? "dialog" : "normal");
|
||||||
|
Show();
|
||||||
SetWMSpecState(GetAcceleratedWidget(), modal,
|
SetWMSpecState(GetAcceleratedWidget(), modal,
|
||||||
GetAtom("_NET_WM_STATE_MODAL"));
|
GetAtom("_NET_WM_STATE_MODAL"));
|
||||||
SetWindowType(GetAcceleratedWidget(), modal ? "dialog" : "normal");
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue