summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-05-08 13:26:12 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-05-08 13:26:12 -0500
commitcadf0728fdebf4a6b8d4efe9083dd1bffea2b077 (patch)
tree1b9bd9a04f0f7b48efc1b25eab2acc349beef37b /src/modules/evas/engines
parent77f946a92c24e89b486be6508a0c494c8f98f66b (diff)
ee_wayland_egl: Remove some amazing weirdness
Summary: I don't even know what to put here, but I'll try. wl_egl_window_resize()'s final two parameters indicate new attachment points for a buffer relative to the previous top left corner. When the compositor is resizing a window it already handles the corner placement. Fortunately, compositors seem to ignore the new attach co-ords during resize, so this code hasn't broken anything. It's just a complicated NOP. The new attachment points are intended for use in spontaneous resize, not drag resize, but the only time these functions are called is for drag resize. Depends on D6119 Reviewers: zmike, cedric Reviewed By: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6120
Diffstat (limited to 'src/modules/evas/engines')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index c8242d0f4e..02b7108bc4 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -324,33 +324,10 @@ eng_outbuf_reconfigure(Outbuf *ob, int w, int h, int rot, Outbuf_Depth depth EIN
324 324
325 if (ob->win) 325 if (ob->win)
326 { 326 {
327 int aw, ah, dx = 0, dy = 0;
328
329 if ((ob->rot == 90) || (ob->rot == 270))
330 wl_egl_window_get_attached_size(ob->win, &ah, &aw);
331 else
332 wl_egl_window_get_attached_size(ob->win, &aw, &ah);
333
334 if (ob->info->info.edges & 4) // resize from left
335 {
336 if ((ob->rot == 90) || (ob->rot == 270))
337 dx = ah - h;
338 else
339 dx = aw - w;
340 }
341
342 if (ob->info->info.edges & 1) // resize from top
343 {
344 if ((ob->rot == 90) || (ob->rot == 270))
345 dy = aw - w;
346 else
347 dy = ah - h;
348 }
349
350 if ((ob->rot == 90) || (ob->rot == 270)) 327 if ((ob->rot == 90) || (ob->rot == 270))
351 wl_egl_window_resize(ob->win, h, w, dx, dy); 328 wl_egl_window_resize(ob->win, h, w, 0, 0);
352 else 329 else
353 wl_egl_window_resize(ob->win, w, h, dx, dy); 330 wl_egl_window_resize(ob->win, w, h, 0, 0);
354 } 331 }
355} 332}
356 333