mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 12:55:47 +01:00
*** empty log message ***
This commit is contained in:
@@ -97,12 +97,13 @@ WMCreateAlertPanel(WMScreen *scrPtr, WMWindow *owner,
|
||||
panel->retKey = XKeysymToKeycode(scrPtr->display, XK_Return);
|
||||
panel->escKey = XKeysymToKeycode(scrPtr->display, XK_Escape);
|
||||
|
||||
if (owner)
|
||||
if (owner) {
|
||||
panel->win = WMCreatePanelWithStyleForWindow(owner, "alertPanel",
|
||||
WMTitledWindowMask);
|
||||
else
|
||||
} else {
|
||||
panel->win = WMCreateWindowWithStyle(scrPtr, "alertPanel",
|
||||
WMTitledWindowMask);
|
||||
}
|
||||
|
||||
WMSetWindowInitialPosition(panel->win,
|
||||
(scrPtr->rootView->size.width - WMWidgetWidth(panel->win))/2,
|
||||
|
||||
Reference in New Issue
Block a user