X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplace.c;h=2cd21bb0379778c3c9a9b947a996b798944c0d93;hb=8a975cb10051e8da0420275a43f1b49d3cce2678;hp=a73a8bfbd60838bd2a610c53e78a94bc69ca9376;hpb=4aade63604e9d29f01933b9bf0ac9228721411ef;p=chaz%2Fopenbox diff --git a/openbox/place.c b/openbox/place.c index a73a8bfb..2cd21bb0 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -193,21 +193,25 @@ static Rect *pick_head(ObClient *c, gboolean foreground, if (config_place_monitor == OB_PLACE_MONITOR_PRIMARY) choice[i].flags |= HEAD_PLACED; if (settings && - settings->monitor_type == OB_APP_SETTINGS_MONITOR_PRIMARY) + settings->monitor_type == OB_PLACE_MONITOR_PRIMARY) choice[i].flags |= HEAD_PERAPP; } i = screen_monitor_active(); if (i < screen_num_monitors) { + if (config_place_monitor == OB_PLACE_MONITOR_ACTIVE) + choice[i].flags |= HEAD_PLACED; if (settings && - settings->monitor_type == OB_APP_SETTINGS_MONITOR_ACTIVE) + settings->monitor_type == OB_PLACE_MONITOR_ACTIVE) choice[i].flags |= HEAD_PERAPP; } i = screen_monitor_pointer(); if (i < screen_num_monitors) { + if (config_place_monitor == OB_PLACE_MONITOR_MOUSE) + choice[i].flags |= HEAD_PLACED; if (settings && - settings->monitor_type == OB_APP_SETTINGS_MONITOR_MOUSE) + settings->monitor_type == OB_PLACE_MONITOR_MOUSE) choice[i].flags |= HEAD_PERAPP; }