mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
[fixup] do not proceed with surface size checks if view not at top left corner - to save some cycles in handle_commit()
This commit is contained in:
parent
859a4d799d
commit
b8eca4c41e
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ handle_commit(struct wl_listener *listener, void *data)
|
|||
* Centre fullscreen windows if smaller than output, for example Wine
|
||||
* game SWAT4. See issue #2779
|
||||
*/
|
||||
if (view->fullscreen) {
|
||||
if (view->fullscreen && !view->current.x && !view->current.y) {
|
||||
if (surface_is_smaller_than_output(view, &size)) {
|
||||
center_fullscreen_view(view, &size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue