don't call framerender directly
This commit is contained in:
parent
15cabcb16a
commit
a138a9a30e
1 changed files with 5 additions and 6 deletions
|
@ -36,7 +36,6 @@
|
||||||
#include "propwin.h"
|
#include "propwin.h"
|
||||||
#include "mouse.h"
|
#include "mouse.h"
|
||||||
#include "mainloop.h"
|
#include "mainloop.h"
|
||||||
#include "framerender.h"
|
|
||||||
#include "focus.h"
|
#include "focus.h"
|
||||||
#include "focus_cycle.h"
|
#include "focus_cycle.h"
|
||||||
#include "moveresize.h"
|
#include "moveresize.h"
|
||||||
|
@ -823,23 +822,23 @@ static void event_handle_client(ObClient *client, XEvent *e)
|
||||||
switch (con) {
|
switch (con) {
|
||||||
case OB_FRAME_CONTEXT_MAXIMIZE:
|
case OB_FRAME_CONTEXT_MAXIMIZE:
|
||||||
client->frame->max_press = (e->type == ButtonPress);
|
client->frame->max_press = (e->type == ButtonPress);
|
||||||
framerender_frame(client->frame);
|
frame_adjust_state(client->frame);
|
||||||
break;
|
break;
|
||||||
case OB_FRAME_CONTEXT_CLOSE:
|
case OB_FRAME_CONTEXT_CLOSE:
|
||||||
client->frame->close_press = (e->type == ButtonPress);
|
client->frame->close_press = (e->type == ButtonPress);
|
||||||
framerender_frame(client->frame);
|
frame_adjust_state(client->frame);
|
||||||
break;
|
break;
|
||||||
case OB_FRAME_CONTEXT_ICONIFY:
|
case OB_FRAME_CONTEXT_ICONIFY:
|
||||||
client->frame->iconify_press = (e->type == ButtonPress);
|
client->frame->iconify_press = (e->type == ButtonPress);
|
||||||
framerender_frame(client->frame);
|
frame_adjust_state(client->frame);
|
||||||
break;
|
break;
|
||||||
case OB_FRAME_CONTEXT_ALLDESKTOPS:
|
case OB_FRAME_CONTEXT_ALLDESKTOPS:
|
||||||
client->frame->desk_press = (e->type == ButtonPress);
|
client->frame->desk_press = (e->type == ButtonPress);
|
||||||
framerender_frame(client->frame);
|
frame_adjust_state(client->frame);
|
||||||
break;
|
break;
|
||||||
case OB_FRAME_CONTEXT_SHADE:
|
case OB_FRAME_CONTEXT_SHADE:
|
||||||
client->frame->shade_press = (e->type == ButtonPress);
|
client->frame->shade_press = (e->type == ButtonPress);
|
||||||
framerender_frame(client->frame);
|
frame_adjust_state(client->frame);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* nothing changes with clicks for any other contexts */
|
/* nothing changes with clicks for any other contexts */
|
||||||
|
|
Loading…
Reference in a new issue