kwin/src
Vlad Zahorodnii b90975b7a2 Replace AbstractClient::adjustedSize() with a simpler alternative
Currently, adjustedSize() does two things - it computes and constrains
the natural size of the window.

In many places where adjustedSize() is used, the natural size doesn't
need to be constrained and in some it's actually undesired because
AbstractClient::constrainClientSize() doesn't allow the client size to
be 0x0, which can happen when dealing with a client that has no buffer
committed yet.

This change replaces adjustedSize() with implicitSize(), which simply
calculates the natural frame size based on the current client size.

If the frame size needs to be constrained, for example during
interactive move-resize, use constrainFrameSize() or if you need to
constrain the client size - constrainClientSize().
2021-10-15 17:16:11 +00:00
..
3rdparty 3rdparty: Synchronize xcursor.c with upstream 2021-05-04 09:40:29 +00:00
decorations Port to function-pointer based QMetaObject::invokeMethod 2021-09-07 06:30:39 +00:00
effects Fix build 2021-10-14 02:44:29 +02:00
helpers [kwin_wrapper] Port kwin_wrapper to not block 2021-08-17 09:42:19 +01:00
kcmkwin compositor: Merge the OpenGL 2 and 3 backends 2021-10-08 15:26:25 +00:00
libinput libinput: Drop mm position in Connection::pointerMotionAbsolute() 2021-10-13 20:52:45 +03:00
libkwineffects Move Xkb::LEDs enum to KWin namespace 2021-10-13 17:49:19 +00:00
platformsupport Move Xkb::LEDs enum to KWin namespace 2021-10-13 17:49:19 +00:00
plugins pipewire: Fix downloading software-rotated textures 2021-10-13 17:16:15 +02:00
qml Port kwin from Plasma Components2 2021-03-27 23:26:31 +00:00
scripting scripting: Guard against nullptr m_client in WindowThumbnailItem 2021-10-15 07:59:55 +00:00
scripts SVN_SILENT made messages (.desktop file) - always resolve ours 2021-10-12 01:19:47 +00:00
tabbox Move active output tracking to workspace 2021-08-30 13:28:23 +00:00
xwl wayland: Set default cursor shape for the root window 2021-09-23 13:52:51 +00:00
abstract_client.cpp Replace AbstractClient::adjustedSize() with a simpler alternative 2021-10-15 17:16:11 +00:00
abstract_client.h Replace AbstractClient::adjustedSize() with a simpler alternative 2021-10-15 17:16:11 +00:00
abstract_opengl_context_attribute_builder.cpp
abstract_opengl_context_attribute_builder.h
abstract_output.cpp Wayland: Add support for protocol kde-output-device_v2, allow to detect drm mode changes 2021-09-01 13:37:43 +00:00
abstract_output.h Wayland: Add support for protocol kde-output-device_v2, allow to detect drm mode changes 2021-09-01 13:37:43 +00:00
abstract_wayland_output.cpp Improve debug, no need to show a number when we can show the value 2021-09-10 18:00:53 +02:00
abstract_wayland_output.h AbstractWaylandOutput: make updateMode use uint32_t 2021-09-02 14:34:07 +02:00
activation.cpp Move active output tracking to workspace 2021-08-30 13:28:23 +00:00
activities.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
activities.h Get Activities to depend only on AbstractClient 2021-03-09 15:22:55 +00:00
appmenu.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
appmenu.h Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
atoms.cpp xwl: Sync primary selection 2021-08-19 06:46:23 +00:00
atoms.h xwl: Sync primary selection 2021-08-19 06:46:23 +00:00
client_machine.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
client_machine.h
CMakeLists.txt wayland: Drop internal connection 2021-10-07 13:28:08 +00:00
colordevice.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
colordevice.h
colormanager.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
colormanager.h
composite.cpp composite: adjust terminal messages (prio + text) 2021-09-20 13:18:33 +00:00
composite.h Make it possible for an effect to render a screen 2021-08-25 14:44:03 +00:00
config-kwin.h.cmake guard gbm version for gbm_bo_get_fd_for_plane 2021-08-25 14:39:35 +00:00
cursor.cpp wayland: Fix cross cursor in Xwayland apps 2021-09-23 13:52:51 +00:00
cursor.h wayland: Fix cross cursor in Xwayland apps 2021-09-23 13:52:51 +00:00
dbusinterface.cpp kcmkwin/rules: Fix suggested values for virtual desktops rule 2021-09-30 05:40:04 +00:00
dbusinterface.h Remove Xrender backend 2021-06-09 11:21:57 +03:00
debug_console.cpp Fix double close() 2021-10-04 05:41:23 +00:00
debug_console.h Add clipboard tab to debug console 2021-09-03 08:40:07 +00:00
debug_console.ui Add clipboard tab to debug console 2021-09-03 08:40:07 +00:00
decorationitem.cpp Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
decorationitem.h Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
deleted.cpp Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
deleted.h x11: Drop support for _NET_WM_FRAME_OVERLAP 2021-08-12 11:44:40 +00:00
dmabuftexture.cpp
dmabuftexture.h
dpmsinputeventfilter.cpp Add support to DPMS to the Wayland Backend 2021-07-09 02:41:26 +02:00
dpmsinputeventfilter.h Add support to DPMS to the Wayland Backend 2021-07-09 02:41:26 +02:00
effectloader.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
effectloader.h autotests: Use EffectLoader to list all available effects 2021-10-12 06:33:30 +00:00
effects.cpp Lay some groundwork for realtime gestures in Wayland 2021-09-01 19:48:41 -04:00
effects.h Lay some groundwork for realtime gestures in Wayland 2021-09-01 19:48:41 -04:00
egl_context_attribute_builder.cpp
egl_context_attribute_builder.h
events.cpp wayland: Reset Toplevel::surfaceId after surface is created 2021-10-04 05:56:27 +00:00
focuschain.cpp Move active output tracking to workspace 2021-08-30 13:28:23 +00:00
focuschain.h Port FocusChain to AbstractOutput 2021-08-29 21:55:07 +00:00
ftrace.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
ftrace.h ftrace: use quint32 for context counter 2021-02-24 23:45:19 +00:00
geometrytip.cpp Fix clazy warning: Use QString() multi-arg 2021-08-25 20:09:55 +00:00
geometrytip.h
gestures.cpp improve gesture recognition 2021-07-09 20:28:04 +00:00
gestures.h improve gesture recognition 2021-07-09 20:28:04 +00:00
globalshortcuts.cpp Lay some groundwork for realtime gestures in Wayland 2021-09-01 19:48:41 -04:00
globalshortcuts.h Lay some groundwork for realtime gestures in Wayland 2021-09-01 19:48:41 -04:00
group.cpp
group.h
idle_inhibition.cpp
idle_inhibition.h
input.cpp InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
input.h InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
input_event.cpp
input_event.h
input_event_spy.cpp
input_event_spy.h
inputmethod.cpp inputmethod: Use touch events to decide if the panel is shown not the state 2021-10-15 15:41:35 +00:00
inputmethod.h inputmethod: Use touch events to decide if the panel is shown not the state 2021-10-15 15:41:35 +00:00
inputpanelv1client.cpp inputmethod: Use touch events to decide if the panel is shown not the state 2021-10-15 15:41:35 +00:00
inputpanelv1client.h inputmethod: Use touch events to decide if the panel is shown not the state 2021-10-15 15:41:35 +00:00
inputpanelv1integration.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
inputpanelv1integration.h
internal_client.cpp Port Workspace::clientArea() to VirtualDesktop 2021-08-25 14:31:30 +00:00
internal_client.h x11: Drop support for _NET_WM_FRAME_OVERLAP 2021-08-12 11:44:40 +00:00
item.cpp Properly update parent item's bounding rect when moving item 2021-10-15 10:30:49 +03:00
item.h Port screenId based rendering methods to AbstractOutput 2021-08-25 13:53:33 +02:00
keyboard_input.cpp InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
keyboard_input.h InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
keyboard_layout.cpp Set component display name for touchpad and keyboard shortcuts 2021-07-26 10:37:48 +02:00
keyboard_layout.h
keyboard_layout_switching.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
keyboard_layout_switching.h
keyboard_repeat.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
keyboard_repeat.h
killwindow.cpp
killwindow.h
kwin.kcfg Remove Xrender backend 2021-06-09 11:21:57 +03:00
kwin.notifyrc SVN_SILENT made messages (.desktop file) - always resolve ours 2021-08-03 01:15:25 +00:00
kwineglutils_p.h platforms/drm: some improvements for logging 2021-06-21 17:57:36 +02:00
layers.cpp Port Workspace::topClientOnDesktop() to AbstractOutput 2021-08-29 21:55:07 +00:00
layershellv1client.cpp Rename LayerShellV1Client::output() to desiredOutput() 2021-08-25 13:58:49 +00:00
layershellv1client.h Rename LayerShellV1Client::output() to desiredOutput() 2021-08-25 13:58:49 +00:00
layershellv1integration.cpp Move active output tracking to workspace 2021-08-30 13:28:23 +00:00
layershellv1integration.h
linux_dmabuf.cpp wayland: Switch to ClientBuffer 2021-07-23 15:33:38 +00:00
linux_dmabuf.h wayland: Switch to ClientBuffer 2021-07-23 15:33:38 +00:00
main.cpp Rework input method teardown logic 2021-10-14 10:02:50 +00:00
main.h Rework input method teardown logic 2021-10-14 10:02:50 +00:00
main_wayland.cpp Drop WaylandServer::terminateClientConnections() 2021-10-14 10:02:50 +00:00
main_wayland.h wayland: Simplify startup sequence 2021-08-25 18:54:19 +00:00
main_x11.cpp fix clazy warning: Pass a context object as 3rd connect parameter 2021-08-23 23:02:46 +00:00
main_x11.h Refactor session code 2021-03-23 08:01:19 +00:00
Messages.sh
modifier_only_shortcuts.cpp fix Meta key randomly stops opening Plasma launcher menu 2021-07-06 10:43:52 +00:00
modifier_only_shortcuts.h fix Meta key randomly stops opening Plasma launcher menu 2021-07-06 10:43:52 +00:00
moving_client_x11_filter.cpp
moving_client_x11_filter.h
netinfo.cpp
netinfo.h
onscreennotification.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
onscreennotification.h
options.cpp compositor: Merge the OpenGL 2 and 3 backends 2021-10-08 15:26:25 +00:00
options.h compositor: Merge the OpenGL 2 and 3 backends 2021-10-08 15:26:25 +00:00
org.kde.kappmenu.xml
org.kde.kwin.Compositing.xml
org.kde.kwin.Effects.xml
org.kde.KWin.Plugins.xml
org.kde.KWin.Session.xml
org.kde.KWin.VirtualDesktopManager.xml
org.kde.KWin.xml
osd.cpp
osd.h GIT_SILENT Add trailing comma to enums 2021-03-14 18:06:22 +01:00
outline.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
outline.h
overlaywindow.cpp
overlaywindow.h
placement.cpp Rename "pack" actions for clarity 2021-10-13 14:28:23 +00:00
placement.h
platform.cpp Wayland: Add support for protocol kde-output-device_v2, allow to detect drm mode changes 2021-09-01 13:37:43 +00:00
platform.h Wayland: Add support for protocol kde-output-device_v2, allow to detect drm mode changes 2021-09-01 13:37:43 +00:00
plugin.cpp
plugin.h plugins: Port away from deprecated version checks 2021-06-07 15:01:19 +00:00
pluginmanager.cpp Port from KPluginLoader::pluginsById to KPluginMetaData::pluginById 2021-07-22 22:59:13 +02:00
pluginmanager.h
pointer_input.cpp InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
pointer_input.h wayland: Set cursor surface outputs. 2021-06-25 08:58:28 +00:00
popup_input_filter.cpp wayland: Switch to new keyboard event notify methods in SeatInterface 2021-03-26 12:33:12 +02:00
popup_input_filter.h PopupEventFilter: handle keyboard events too 2021-03-25 12:38:43 +00:00
renderjournal.cpp
renderjournal.h
renderloop.cpp Fix a -Wformat warning on FreeBSD 2021-10-07 08:24:01 +00:00
renderloop.h Wayland: variable refresh rate support 2021-04-30 16:18:39 +02:00
renderloop_p.h Wayland: variable refresh rate support 2021-04-30 16:18:39 +02:00
rootinfo_filter.cpp
rootinfo_filter.h
rulebooksettings.cpp rulebooksettings: Add accesors to the rules settings list 2021-06-07 21:03:29 +02:00
rulebooksettings.h rulebooksettings: Add accesors to the rules settings list 2021-06-07 21:03:29 +02:00
rulebooksettingsbase.kcfg rulebooksettings: Add accesors to the rules settings list 2021-06-07 21:03:29 +02:00
rulebooksettingsbase.kcfgc
rules.cpp Replace AbstractClient::adjustedSize() with a simpler alternative 2021-10-15 17:16:11 +00:00
rules.h kwinrules: Use a list of desktop UUIDs to set and store the rules setting 2021-09-02 22:11:46 +02:00
rulesettings.kcfg kwinrules: Use a list of desktop UUIDs to set and store the rules setting 2021-09-02 22:11:46 +02:00
rulesettings.kcfgc
scene.cpp Fix a -Wformat warning on FreeBSD 2021-10-07 08:24:01 +00:00
scene.h Make it possible for an effect to render a screen 2021-08-25 14:44:03 +00:00
screenedge.cpp fix wrong approach geometry of screen edge's effect 2021-10-06 22:57:33 +00:00
screenedge.h GIT_SILENT Add trailing comma to enums 2021-03-14 18:06:22 +01:00
screenlockerwatcher.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
screenlockerwatcher.h
screens.cpp Port ScreenEdges away from Screens 2021-08-31 11:17:46 +03:00
screens.h Port ScreenEdges away from Screens 2021-08-31 11:17:46 +03:00
service_utils.cpp
service_utils.h
session.cpp wayland: Remove direct session 2021-05-24 06:23:00 +00:00
session.h wayland: Remove direct session 2021-05-24 06:23:00 +00:00
session_consolekit.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
session_consolekit.h Refactor session code 2021-03-23 08:01:19 +00:00
session_logind.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
session_logind.h Refactor session code 2021-03-23 08:01:19 +00:00
session_noop.cpp Refactor session code 2021-03-23 08:01:19 +00:00
session_noop.h Refactor session code 2021-03-23 08:01:19 +00:00
settings.kcfgc
shadow.cpp Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
shadow.h Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
shadowitem.cpp Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
shadowitem.h Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
shortcutdialog.ui
sm.cpp Fix clazy warning: Use QString() multi-arg 2021-08-25 20:09:55 +00:00
sm.h GIT_SILENT Add trailing comma to enums 2021-03-14 18:06:22 +01:00
subsurfacemonitor.cpp wayland: Switch to SurfaceInterface::{below,above} 2021-07-08 06:55:38 +00:00
subsurfacemonitor.h
surfaceitem.cpp scene: Fix previous pixmap ref'ing 2021-09-15 16:16:42 +00:00
surfaceitem.h Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_internal.cpp Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_internal.h Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_wayland.cpp Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_wayland.h Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_x11.cpp Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
surfaceitem_x11.h Remove scene window traces in scene items 2021-08-12 17:52:24 +00:00
syncalarmx11filter.cpp
syncalarmx11filter.h
tablet_input.cpp InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
tablet_input.h
tabletmodemanager.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
tabletmodemanager.h
toplevel.cpp Store Toplevel surface using QPointer 2021-10-04 05:56:27 +00:00
toplevel.h Store Toplevel surface using QPointer 2021-10-04 05:56:27 +00:00
touch_hide_cursor_spy.cpp
touch_hide_cursor_spy.h
touch_input.cpp InputMethod: only activate virtual keyboard when used with touch 2021-10-15 15:41:35 +00:00
touch_input.h wayland: Fix handling of synthetic touch cancel events 2021-02-16 17:53:30 +00:00
udev.cpp platforms/drm: Introduce KWIN_DRM_DEVICES 2021-05-01 12:14:34 +00:00
udev.h platforms/drm: Introduce KWIN_DRM_DEVICES 2021-05-01 12:14:34 +00:00
unmanaged.cpp Store AbstractOutput in Toplevel 2021-08-29 21:55:07 +00:00
unmanaged.h x11: Drop support for _NET_WM_FRAME_OVERLAP 2021-08-12 11:44:40 +00:00
useractions.cpp Rename "pack" actions for clarity 2021-10-13 14:28:23 +00:00
useractions.h Port AbstractClient::sendToScreen() to AbstractOutput 2021-08-29 21:55:07 +00:00
utils.cpp decoration: Fix rendering issues with scale factors < 1 2021-04-26 11:41:37 +00:00
utils.h fix wrong popups Z-order after applying "Show Desktop" effect 2021-09-23 11:54:55 +00:00
virtualdesktops.cpp Assign default name if new virtual desktop has no explicit name 2021-09-09 10:50:16 +03:00
virtualdesktops.h Drop VirtualDesktopManager::name() 2021-08-25 20:12:07 +03:00
virtualdesktopsdbustypes.cpp
virtualdesktopsdbustypes.h
virtualkeyboard_dbus.cpp inputmethod: Add a property to tell whether an input method is running 2021-07-22 17:42:53 +02:00
virtualkeyboard_dbus.h inputmethod: Add a property to tell whether an input method is running 2021-07-22 17:42:53 +02:00
was_user_interaction_x11_filter.cpp
was_user_interaction_x11_filter.h
wayland_server.cpp Drop WaylandServer::terminateClientConnections() 2021-10-14 10:02:50 +00:00
wayland_server.h Drop WaylandServer::terminateClientConnections() 2021-10-14 10:02:50 +00:00
waylandclient.cpp x11: Drop support for _NET_WM_FRAME_OVERLAP 2021-08-12 11:44:40 +00:00
waylandclient.h x11: Drop support for _NET_WM_FRAME_OVERLAP 2021-08-12 11:44:40 +00:00
waylandoutput.cpp wayland: Use new api to remove globals safely 2021-05-12 11:31:36 +00:00
waylandoutput.h wayland: Use new api to remove globals safely 2021-05-12 11:31:36 +00:00
waylandoutputdevicev2.cpp platforms/drm: support Broadcast_RGB setting 2021-09-02 13:53:02 +02:00
waylandoutputdevicev2.h platforms/drm: support Broadcast_RGB setting 2021-09-02 13:53:02 +02:00
waylandshellintegration.cpp
waylandshellintegration.h
window_property_notify_x11_filter.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
window_property_notify_x11_filter.h
windowitem.cpp scene: Handle Xwayland windows changing surfaces 2021-10-04 05:56:27 +00:00
windowitem.h Move ownership of Shadow to Toplevel 2021-09-06 10:42:39 +00:00
workspace.cpp Clear should_get_focus in Workspace::focusToNull() 2021-10-05 14:53:20 +00:00
workspace.h Rename "pack" actions for clarity 2021-10-13 14:28:23 +00:00
x11client.cpp Replace AbstractClient::adjustedSize() with a simpler alternative 2021-10-15 17:16:11 +00:00
x11client.h Remove unused includes in x11client.h 2021-08-12 17:23:15 +00:00
x11eventfilter.cpp x11: Move event filter logic to kwinApp() 2021-03-23 08:01:19 +00:00
x11eventfilter.h
x11syncmanager.cpp scenes/opengl: Move out X11 explicit sync 2021-06-14 13:14:54 +00:00
x11syncmanager.h scenes/opengl: Move out X11 explicit sync 2021-06-14 13:14:54 +00:00
xcbutils.cpp
xcbutils.h
xcursortheme.cpp wayland: Fix loading of HiDPI cursors 2021-05-03 10:52:25 +03:00
xcursortheme.h wayland: Fix loading of HiDPI cursors 2021-05-03 10:52:25 +03:00
xdgactivationv1.cpp Decouple activation feedback from window management 2021-08-25 09:35:57 +00:00
xdgactivationv1.h plasma-window-management: Support new activation concepts 2021-08-20 07:05:34 +00:00
xdgshellclient.cpp xdgshellclient: fix initial placement with maximize 2021-10-04 09:39:58 +00:00
xdgshellclient.h wayland: Setup window management integration on initial commit 2021-08-31 23:42:07 +00:00
xdgshellintegration.cpp Run clazy with qt-keywords fixit 2021-06-08 10:49:42 +03:00
xdgshellintegration.h
xkb.cpp Move Xkb::LEDs enum to KWin namespace 2021-10-13 17:49:19 +00:00
xkb.h Move Xkb::LEDs enum to KWin namespace 2021-10-13 17:49:19 +00:00
xwaylandclient.cpp scene: Introduce window items 2021-03-31 13:56:55 +00:00
xwaylandclient.h wayland: Mark Xwayland windows ready for painting when mapped 2021-03-31 13:56:55 +00:00