mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
wmaker: use defined wWindowSingleFocus() function
This patch is cleaning focuswindow() local function to call wWindowSingleFocus() global function. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
committed by
Carlos R. Mafra
parent
36b9f6cb23
commit
39f6130a28
@@ -62,26 +62,12 @@ static void wsobserver(void *self, WMNotification * notif);
|
||||
static void focusWindow(WMenu * menu, WMenuEntry * entry)
|
||||
{
|
||||
WWindow *wwin;
|
||||
WScreen *scr;
|
||||
int x, y, move = 0;
|
||||
|
||||
/* Parameter not used, but tell the compiler that it is ok */
|
||||
(void) menu;
|
||||
|
||||
wwin = (WWindow *) entry->clientdata;
|
||||
scr = wwin->screen_ptr;
|
||||
|
||||
wMakeWindowVisible(wwin);
|
||||
|
||||
x = wwin->frame_x;
|
||||
y = wwin->frame_y;
|
||||
|
||||
/* bring window back to visible area */
|
||||
move = wScreenBringInside(scr, &x, &y, wwin->frame->core->width, wwin->frame->core->height);
|
||||
|
||||
if (move) {
|
||||
wWindowConfigure(wwin, x, y, wwin->client.width, wwin->client.height);
|
||||
}
|
||||
wWindowSingleFocus(wwin);
|
||||
}
|
||||
|
||||
void InitializeSwitchMenu(void)
|
||||
|
||||
Reference in New Issue
Block a user