mirror of
https://github.com/amiwm/amiwm.git
synced 2026-03-23 17:19:14 +00:00
Compare commits
4 Commits
f3fc2a7015
...
d7e7a8a6a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7e7a8a6a2 | ||
|
|
f13edf56fd | ||
|
|
bf4806c066 | ||
|
|
beccf8b0fb |
10
client.c
10
client.c
@@ -149,10 +149,12 @@ void checksizehints(Client *c)
|
||||
|
||||
void open_fscrn(Client *c)
|
||||
{
|
||||
XUnmapWindow(dpy, c->parent);
|
||||
c->fsscr = scr = openscreen(NULL, scr->root);
|
||||
c->reparenting = 1;
|
||||
XReparentWindow(dpy, c->window, scr->back, 0, 0);
|
||||
XReparentWindow(dpy, c->parent, c->fsscr->back, 0, 0);
|
||||
XRaiseWindow(dpy, c->window);
|
||||
XMoveResizeWindow(dpy, c->parent, 0, 0, c->fsscr->width, c->fsscr->height);
|
||||
XMoveResizeWindow(dpy, c->window, 0, 0, c->fsscr->width, c->fsscr->height);
|
||||
for (Client *dialog = clients; dialog != NULL; dialog = dialog->next)
|
||||
if (dialog->leader == c)
|
||||
reparent_client(c->fsscr, dialog);
|
||||
@@ -171,7 +173,9 @@ void close_fscrn(Client *c, int state)
|
||||
{
|
||||
if (c->fsscr == NULL)
|
||||
return;
|
||||
XReparentWindow(dpy, c->window, c->parent, 4, c->scr->bh);
|
||||
XReparentWindow(dpy, c->parent, c->scr, c->x, c->y);
|
||||
XMoveResizeWindow(dpy, c->parent, c->x, c->y, c->pwidth, c->pheight);
|
||||
XMoveResizeWindow(dpy, c->window, 4, c->scr->bh, c->pwidth-c->framewidth, c->pheight-c->frameheight);
|
||||
XResizeWindow(dpy, c->window, c->pwidth-c->framewidth, c->pheight-c->frameheight);
|
||||
XLowerWindow(dpy, c->window);
|
||||
scr = c->fsscr;
|
||||
|
||||
6
menu.c
6
menu.c
@@ -323,15 +323,15 @@ void redraw_item(struct Item *i, Window w)
|
||||
#ifdef HAVE_XUTF8DRAWIMAGESTRING
|
||||
Xutf8DrawImageString(dpy, w, scr->dri.dri_FontSet,
|
||||
scr->menubargc, x+scr->dri.dri_Ascent+1,
|
||||
1+scr->dri.dri_Ascent, "\302\273", 2);
|
||||
1+scr->dri.dri_Ascent, "»", 2);
|
||||
#else
|
||||
XmbDrawImageString(dpy, w, scr->dri.dri_FontSet,
|
||||
scr->menubargc, x+scr->dri.dri_Ascent+1,
|
||||
1+scr->dri.dri_Ascent, "»", 1);
|
||||
1+scr->dri.dri_Ascent, "\xBB", 1);
|
||||
#endif
|
||||
#else
|
||||
XDrawImageString(dpy, w, scr->menubargc, x+scr->dri.dri_Ascent+1,
|
||||
1+scr->dri.dri_Ascent, "»", 1);
|
||||
1+scr->dri.dri_Ascent, "\xBB", 1);
|
||||
#endif
|
||||
} else if(i->hotkey) {
|
||||
int x=m->width-6-scr->hotkeyspace-1+8;
|
||||
|
||||
Reference in New Issue
Block a user