Move magnifier code to separate module

This commit is contained in:
Simon Long 2024-05-15 11:33:20 +01:00
parent 24e86f095c
commit 18819b1147
6 changed files with 328 additions and 304 deletions

View file

@ -13,9 +13,9 @@
#include "common/parse-bool.h"
#include "common/spawn.h"
#include "common/string-helpers.h"
#include "common/scene-helpers.h"
#include "debug.h"
#include "labwc.h"
#include "magnifier.h"
#include "menu/menu.h"
#include "osd.h"
#include "output-virtual.h"
@ -1054,13 +1054,13 @@ actions_run(struct view *activator, struct server *server,
}
break;
case ACTION_TYPE_TOGGLE_MAGNIFY:
magnify_toggle();
magnify_toggle(server);
break;
case ACTION_TYPE_ZOOM_IN:
magnify_set_scale(MAGNIFY_INCREASE);
magnify_set_scale(server, MAGNIFY_INCREASE);
break;
case ACTION_TYPE_ZOOM_OUT:
magnify_set_scale(MAGNIFY_DECREASE);
magnify_set_scale(server, MAGNIFY_DECREASE);
break;
case ACTION_TYPE_INVALID:
wlr_log(WLR_ERROR, "Not executing unknown action");