Commit Graph

19 Commits

Author SHA1 Message Date
Jean-Philippe Andre ff8ee01432 Efl: Rename some packing functions and return bool
This renames some APIs from Efl.Pack in order to try and
make them more sensible. Feedback welcome.

Also, most APIs now return bool, where false is quite unlikely
to happen.
2016-04-26 16:48:55 +09:00
Jean-Philippe Andre f7f1862489 Elm.Win: Implement container & pack APIs
This replaces resize_object APIs.
2016-04-26 14:09:36 +09:00
WooHyun Jung 1c6f3fd966 elm_focus: keep all focused states to be consistent when win loses and gets focus
Since focus_clear removed all the focused traces, focus was not reverted well
whenever win lost and got focus repeatedly.
For instance,
1. set focus to button1
2. set focus to button2
3. win focus out and in
4. remove button2
5. focus is on win not on button1

So, focus logic changes to not clear focused states when win loses focus.

@fix
2016-04-16 13:47:13 +09:00
WooHyun Jung f24dce9bc9 elm_win: remove duplicated focused/unfocused event call
These are already called in elm_widget's on_focus.

@fix
2016-04-16 10:37:34 +09:00
Mike Blumenkrantz b6f87499e1 elm_win: force opaque update on maximize state change
enforce csd recalc to ensure accurate maximize sizing

@fix
2016-04-08 15:50:44 -04:00
Jean-Philippe Andre a6d7efcf73 elm_win: Fix warning (unused variable) 2016-04-08 14:19:58 +09:00
Mike Blumenkrantz 0712218537 wayland: hook engine data from elm_win and update rect with evas size
the only way to accurately calculate the "evas" size in the engine from
window geometry is to have the size of the frame available to subtract from
window geometry

window geometry is NOT framespace--framespace is the entire csd region, possibly
containing a shadow, and window geometry is explicitly the region occupied by the
window, ie. not the shadowed part.

not my ideal solution to the synchronization issue here, but I guess this is a
benefit of the unified tree

fix T3396
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz 6a1c466136 elm_win: handle icon object lifetimes more accurately, use icon_name in csd icon
in the case where an icon existed upon having an icon object set, the previous icon
object would be orphaned while still being visible. the new icon would then never
be set into the csd.

@fix
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz 53f0b89671 elm_win: move frame obj creation/deletion for fullscreen property to state change cb
this was broken if the compositor unset fullscreen without being prompted by
the client (eg. ctrl+alt+f). it also created timing differences for csd calcs based
on when the fullscreen call occurred in the render cycle

@fix
2016-04-07 14:19:25 -04:00
Mike Blumenkrantz 01156d3469 elm_win: update wayland opaque region during pre-flush...always
@fix
2016-04-05 15:11:31 -04:00
WooHyun Jung fe7ba5af00 elm_win: newest is always unfocused when window just gets focus 2016-04-05 11:23:04 +09:00
Mike Blumenkrantz 3121ea07c2 elm_win: conditionally emit focus and maximize signals in frame creation
@fix
2016-04-04 18:00:26 -04:00
Mike Blumenkrantz e376db9189 elm_win: update opaque region while fullscreened
@fix
2016-04-04 18:00:24 -04:00
Mike Blumenkrantz c84a4e5a5f elm_win: unset opaque region when alpha is set
@fix
2016-04-04 16:30:53 -04:00
Carsten Haitzler d1f4f6c8af elm win - null out freed data on smart del
this fixes double-frees of strings in oddball cases where a deleted
window that is not done deleting is accessed.

@fix
2016-04-02 16:02:07 +09:00
Carsten Haitzler 1c2a5cec93 elm: fix window resize self-trigger
so there was/is a case where when an elm window is resized from
outside, it will happen to use the last known size (maybe old) and end
up requesting a resize to that size again itself. it basically
triggers its own resize request as a result of resize events. this
fixes that and stops the loop

@fix
2016-03-25 15:11:38 +09:00
Mike Blumenkrantz 25f0de1147 elm_win: monitor wl CONFIGURE events and unset resizing flag accordingly
resolves inability to resize again after resizing

@fix
2016-03-24 15:39:08 -04:00
Mike Blumenkrantz 2749775c74 elm_win: force resize during show if job is pending
this resolves the issue of all elm windows being created at 1x1 and
immediately resizing to another size after being shown, causing all
kinds of failures in various environments

@fix
2016-03-24 15:39:08 -04:00
Cedric BAIL c2a1c49ab2 elementary: move all legacy files to their expected new location. 2016-03-23 13:24:41 -07:00