@@ -317,6 +317,8 @@ struct managed_win {
317
317
struct win_script_context {
318
318
double x , y , width , height ;
319
319
double opacity_before , opacity ;
320
+ double monitor_x , monitor_y ;
321
+ double monitor_width , monitor_height ;
320
322
};
321
323
322
324
static const struct script_context_info win_script_context_info [] = {
@@ -326,6 +328,10 @@ static const struct script_context_info win_script_context_info[] = {
326
328
{"window-height" , offsetof(struct win_script_context , height )},
327
329
{"window-raw-opacity-before" , offsetof(struct win_script_context , opacity_before )},
328
330
{"window-raw-opacity" , offsetof(struct win_script_context , opacity )},
331
+ {"window-monitor-x" , offsetof(struct win_script_context , monitor_x )},
332
+ {"window-monitor-y" , offsetof(struct win_script_context , monitor_y )},
333
+ {"window-monitor-width" , offsetof(struct win_script_context , monitor_width )},
334
+ {"window-monitor-height" , offsetof(struct win_script_context , monitor_height )},
329
335
{NULL , 0 } //
330
336
};
331
337
0 commit comments