a9ad59b32a
Workspace::outputAt() casts vectors to four rectangle corners and uses the shortest one to decide which output is the closest to the given point. This works poorly on dual monitor setups where on the left side you have a monitor with landscape orientation and one with portrait orientation on the right hand side. In that case, outputAt() will prefer the left monitor even though the right monitor is the closest one if you cast a perpendicular from the given point to the right monitor. In order to improve the handling of that case, this change makes Workspace::outputAt() compute the closest point to the output geometry rectangle and use the squared distance as the score. |
||
---|---|---|
.. | ||
data | ||
effects | ||
fakes | ||
helper | ||
protocols | ||
scripting | ||
activation_test.cpp | ||
activities_test.cpp | ||
buffer_size_change_test.cpp | ||
CMakeLists.txt | ||
dbus_interface_test.cpp | ||
debug_console_test.cpp | ||
decoration_input_test.cpp | ||
desktop_window_x11_test.cpp | ||
dont_crash_aurorae_destroy_deco.cpp | ||
dont_crash_cancel_animation.cpp | ||
dont_crash_empty_deco.cpp | ||
dont_crash_glxgears.cpp | ||
dont_crash_no_border.cpp | ||
dont_crash_reinitialize_compositor.cpp | ||
dont_crash_useractions_menu.cpp | ||
fractional_scaling_test.cpp | ||
generic_scene_opengl_test.cpp | ||
generic_scene_opengl_test.h | ||
globalshortcuts_test.cpp | ||
idle_inhibition_test.cpp | ||
input_stacking_order.cpp | ||
inputmethod_test.cpp | ||
internal_window.cpp | ||
keyboard_layout_test.cpp | ||
keymap_creation_failure_test.cpp | ||
kwin_wayland_test.cpp | ||
kwin_wayland_test.h | ||
kwinbindings_test.cpp | ||
layershellv1window_test.cpp | ||
lockscreen.cpp | ||
maximize_test.cpp | ||
modifier_only_shortcut_test.cpp | ||
move_resize_window_test.cpp | ||
no_global_shortcuts_test.cpp | ||
outputchanges_test.cpp | ||
placement_test.cpp | ||
plasma_surface_test.cpp | ||
plasmawindow_test.cpp | ||
platformcursor.cpp | ||
pointer_constraints_test.cpp | ||
pointer_input.cpp | ||
quick_tiling_test.cpp | ||
scene_opengl_es_test.cpp | ||
scene_opengl_test.cpp | ||
screen_changes_test.cpp | ||
screenedge_client_show_test.cpp | ||
screenedges_test.cpp | ||
screens_test.cpp | ||
shade_test.cpp | ||
showing_desktop_test.cpp | ||
stacking_order_test.cpp | ||
struts_test.cpp | ||
tabbox_test.cpp | ||
test_helpers.cpp | ||
test_virtualkeyboard_dbus.cpp | ||
tiles_test.cpp | ||
touch_input_test.cpp | ||
transient_placement.cpp | ||
virtual_desktop_test.cpp | ||
window_rules_test.cpp | ||
window_selection_test.cpp | ||
x11_window_test.cpp | ||
xdgshellwindow_rules_test.cpp | ||
xdgshellwindow_test.cpp | ||
xwayland_input_test.cpp | ||
xwayland_selections_test.cpp | ||
xwaylandserver_crash_test.cpp | ||
xwaylandserver_restart_test.cpp |