Commit Graph

19424 Commits

Author SHA1 Message Date
Sebastian Dransfeld 7f14d81e6a randr: always call _e_randr_output_active_set
_e_randr_output_active_set should handle if we set active on an active
output
2014-12-17 10:29:27 +01:00
Sebastian Dransfeld 7ddc9d73ff randr: handle (x, y) > 0
x and y can be larger than 0, so we must set a high start value.
2014-12-17 10:22:48 +01:00
Sebastian Dransfeld 9844c738f7 randr: remove weird code
If we do E_Randr_Output *out2 = _e_randr_output_find(output->xid), then
output should be equal to out2, else we have several output variables per
output xid which should be fixed correctly.
2014-12-17 08:56:24 +01:00
Sebastian Dransfeld 399fd22c36 randr: cleanup try 2
This does not change any behaviour, just moves code:

1. We only try to locate a crtc for an output in _e_randr_output_active_set

And we only do this when we set active.

2. We only search for a crtc in _e_randr_output_crtc_find

This includes looping known crtcs without querying X if it matches.

Please don't revert, but help cleaning. As the current code does not
work for me...
2014-12-17 08:49:40 +01:00
Carsten Haitzler 43f1dc012d Revert "Randr: Fix null dereference."
This reverts commit 4aef218d28.

Revert "randr: remember crtcid for fast lookup on reconnect"
This reverts commit 55b4ad41d1.

Revert "randr: further cleanup"
This reverts commit 3e02824663.

these make nvidia randr resolution changing work again. sorry seb.
even though cleanups might be nice... this code is FIDDLY and every
driver seems to work differently, so take it easy and be very careful
- make no assumptions. i know it works on my intel desktop and nvidia
deskop atm. once i get a vga cable i'll fix up intel laptop with
external display that has problems. i can try radeon too later. but
right now - this stuff needs to work. being clean is far less
important than working. :)
2014-12-17 09:40:41 +09:00
Carsten Haitzler 9677b71902 Revert "randr: Don't track active outputs"
This reverts commit 01f43e3618.

this broke nvidia randr - i cant tunr my screens on or off anymore.
2014-12-17 09:12:32 +09:00
Stefan Schmidt b83bbaf198 po: Remove file from now disabled access module to pass distcheck 2014-12-16 16:47:38 +01:00
Tom Hacohen 4aef218d28 Randr: Fix null dereference.
CID1181926
2014-12-16 14:56:10 +00:00
Sebastian Dransfeld 01f43e3618 randr: Don't track active outputs
Remove tracking of active outputs to reduce code complexity.
2014-12-16 10:13:55 +01:00
Sebastian Dransfeld d265a1b289 randr: TODO++ 2014-12-16 09:56:02 +01:00
Sebastian Dransfeld 55b4ad41d1 randr: remember crtcid for fast lookup on reconnect
When an output is set inactive, it is disconnected from a crtc. Now we
remember the id of the last crtc it was connected to, so we get a faster
lookup on reconnect.
2014-12-16 09:21:02 +01:00
Carsten Haitzler 5180b69e33 e randr - restore edp checks
the dp checks were looking for edp stuff. but due to naming they appeard as
eDP or maybe edp or EDP - thus were simplified to dp. put more explicit
checks there.
2014-12-16 11:31:00 +09:00
Sebastian Dransfeld 074779b460 randr: Don't match DP as LID
On my intel laptop DP are my DisplayPort connections, not LID.
2014-12-15 12:52:25 +01:00
Sebastian Dransfeld 3e02824663 randr: further cleanup
Primarly two things removed:
1. crtc->outputs should only contain outputs which should be enabled
So looping them twice in e_randr_apply is definitly wrong.

2. _e_randr_crtc_find should find a crtc for an output
So looping our crtcs again in _active_set is definitly wrong. If
_e_randr_crtc_find does not find us a crtc, it should be fixed there.
2014-12-15 12:31:14 +01:00
Carsten Haitzler 95b4f14098 e randr - make it work on nvidia - lots of "wrong" things fixed
i've spent a while testing randr on my nvidia box and drviers. it now
works - i can turn screens on and off. i couldn't before. e_randr was
trying to be too smart for its own good. it wasnt matching up outputs
to crtcs, was thinking outputs active when they were not, etc. etc.
etc. - reality is e_randr could do witha  lot of simplification, but
at this stage i'm just going to hammer it into shape to work across as
many drivers and setups as i can test against.
2014-12-15 07:43:25 +09:00
Mike Blumenkrantz f3f3cedd03 only use elm win title for internal windows if it has been set 2014-12-14 15:40:25 -05:00
Marcel Hollerbach ec64288d4f e_win: Fix Dialog Titles
We should not set the title to "E" in the trap function of show.
If we do this we will override the icccm title and the netwm name, this
mean e_comp_x will set E as title of the window if the call to
elm_win_title_set was BEFORE the window was shown.

Now the name which was set before will be inserted.
2014-12-14 12:21:16 +01:00
Marcel Hollerbach a6f7d9ac1e Register the new window into out evas.
Summary:
Otherwise the mouse up event is emitted to the evas but the evas does
not work with it, because it does not know the window it is from. This
leads to a evas_event_down_count_get bigger than 1 which leads to a
missing mouse_out event. With this missing mouse_out event _post_up_handle
in evas_event.c is not called anymore, this means all the click events
are getting emitted to the object which was last clicked.

This fixes T1894.

Test Plan: Drag and Drop a icon somewhere and click somewhere after that, the evas will not get stuck anymore

Reviewers: raster

Subscribers: cedric, abyomi0, zmike, raster

Maniphest Tasks: T1894

Differential Revision: https://phab.enlightenment.org/D1771
2014-12-13 09:17:21 +01:00
Mike Blumenkrantz 827bd2818a store hide_logo state for desklock backgrounds
fix T1714
2014-12-11 12:24:16 -05:00
Mike Blumenkrantz 066bdba3fa apply client size based on correct remember value, only apply if value != 0
ref T999
2014-12-08 17:06:13 -05:00
Mike Blumenkrantz 9bb38950bb remembering size on a window should also remember maximize state 2014-12-08 17:05:58 -05:00
Mike Blumenkrantz ac7bf5fe32 greatly reduce FAILURE_MAX
ref T1820
2014-12-08 17:03:23 -05:00
Mike Blumenkrantz 77717523f3 remove access module from build
this hasn't been updated in over 1.5 years and has caused me to waste time repeatedly fixing build-related issues. in addition, it uses symbols which are no longer even available in efl.

if nobody updates/maintains this, it will be removed for e20 release

src/modules/access/e_mod_main.c: In function '_cover_new':
src/modules/access/e_mod_main.c:765:4: warning: implicit declaration of function 'ecore_x_input_multi_select' [-Wimplicit-function-declaration]
2014-12-08 15:49:11 -05:00
Mike Blumenkrantz 28d6eecceb reduce shape recalc for clients which cannot currently receive input 2014-12-07 20:17:33 -05:00
Mike Blumenkrantz 610c439abd redo shaped client checks to use shape flags instead of rect pointer, fix shapeless clients
according to the shape extension protocol, the number of rectangles returned should be checked to determine a client's shape. if 0 is returned, the client has no shape, meaning that it either should not be drawn or should have no input region. this improves behavior with various client window types such as tooltips

ref T1820
2014-12-07 20:17:33 -05:00
Mike Blumenkrantz 634b58773a add failure count for client rendering, drop clients after FAILURE_MAX tries
this traps clients which are showing and hiding themselves extremely quickly and prevents them from crashing us when we try to draw them

fix T1820
2014-12-07 20:17:33 -05:00
Mike Blumenkrantz 38f30c83af fix X crash when trying to apply desktop window profile to client without desk 2014-12-07 20:17:33 -05:00
Mike Blumenkrantz 3e50ac6e27 ensure clients are visible before triggering shape/render queue 2014-12-07 20:17:33 -05:00
Marcel Hollerbach 029104921d everything: terminate bc instead of quit
On some systemd SIGQUIT causes the logger to save a coredump.
Quiting bc here does not need save a backtrace here, the termination is
not a crash its a "closing" of the program.
2014-12-06 18:06:43 +01:00
Mike Blumenkrantz 5753b7a2dd attempt to run eeze_scanner on failure to connect, not successful connect
ref T1612
2014-12-05 13:55:29 -05:00
Mike Blumenkrantz a9806056fc only attempt to start eeze_scanner a couple times before giving up
ref T1612
2014-12-05 13:55:29 -05:00
Mike Blumenkrantz eacfb2a98e store eeze_scanner connection poller to avoid creating an infinite number
ref T1612
2014-12-05 13:55:29 -05:00
Mike Blumenkrantz 5023d7eaa6 don't exit e_fm when eeze init fails, send RASTER mode instead 2014-12-05 13:55:29 -05:00
Mike Blumenkrantz 671a0d3b99 print more descriptive error messages when scanner connection fails, also don't exit() here
ref T1612
2014-12-05 13:55:28 -05:00
Tom Hacohen 13c6e93b9c AUTHORS: Add Marcel to authors file. 2014-12-03 13:28:45 +00:00
Tom Hacohen 4cff39b6d7 AUTHORS: Add Luis to authors file.
Thanks for your contributions, let's hope they are the first of many. :)
2014-12-03 12:04:04 +00:00
Luis de Bethencourt 294db70962 backlight: remove code duplication
Move repeated blocks of code to a static function
2014-12-03 11:55:25 +00:00
Luis de Bethencourt 1bcc205d2f backlight: visual feedback when adjusting value through keybindings
The backlight module has an action to show the value of the backlight brightness
by showing the gadget's popup. Added a parameter to this action to adjust the
brightness at the same time.
2014-12-03 11:55:25 +00:00
Leif Middelschulte 416aaa978d ibar: Fix "additional action"s and seperator placement.
Summary: This moves the additional actions to the top of the menu and the seperator right underneath.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1694
2014-12-03 18:14:24 +09:00
Stefan Schmidt 9336d7c372 e_start_main: Close fd only if we actually succeeded opening it.
In the error case fd would be -1 here. Closing needs to be handled in the
cases where fd != -1.

CID: 1256492
2014-12-02 10:50:27 +01:00
Chris Michael c7386d61c9 e-start: Fix 'control reaches end of non-void function'
Summary: Seems one of the Daniels did not check their compiler output
;) _e_ptrace_attach function should return an integer value...

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:55:32 -05:00
Daniel Kolesa ef82c30bb4 fix indentation 2014-12-01 16:30:57 +00:00
Daniel Kolesa 715d7f00b4 remove unused variable 2014-12-01 16:28:46 +00:00
Daniel Kolesa f918476da1 e_start_main: refactor (reduce scope depth, separate ifdefs, cleanup)
The main reason for this change is to clean it up for proper non-Linux
platform support, but also to make it cleaner in general.
2014-12-01 16:25:58 +00:00
Mike Blumenkrantz 6be71a64f9 fix efm dnd crash
fix T1880
2014-11-29 12:22:25 -05:00
Carsten Haitzler 48023b9ce3 e randr - fix warning (signed vs unsigned cmp) 2014-11-29 16:44:41 +09:00
Takeshi Banse 6601c09f82 cpufreq: teach cpuinfo_{min,max}_freq as available frequencies
Summary:
The intel_pstate scaling driver exposes the `scaling_cur_freq` since
kernel 3.17 [*], it would be fine that the min and max frequencies
are known even without the `scaling_available_frequencie`.

This commit teaches to use the cpuinfo_{min,max}_freq as fallback in
case the `scaling_available_frequencies` is not available within
intel pstate.

[*] https://lkml.org/lkml/2014/11/11/1060

Signed-off-by: Takeshi Banse <takebi@laafc.net>

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1686
2014-11-29 16:39:42 +09:00
Carsten Haitzler 70753a7903 e - randr - stop saving config using XID - this is utterly WRONG
so e was storing randr config using XIDs to match outputs etc. this is
all kinds of wrong. XIDs are NOT STATIC. they change from xserver to
xserver and from run to run. they MAY be the same. they may not. so
this was just broken.

use output name + edid as a big "string" (name.edid) as a way ofr
identifying config for a specific combination of output plus monitor
and to find/identify the corrent output+monitor to apply it to (of
course missing edid gets replaced with ??? and missing output name is
??? too - i have never seen a missing output name so you get this at
least).

so this FIXES "restore" of screen mode on login for starters. this
does nothing to "fix" the screen setup dialog in any way. there are
separate issues there.

this also breaks e_randr config compat so i bumped epoch so your old
config is rejected. i don't see a sensible way of porting the config
forward.
2014-11-29 10:05:36 +09:00
Mike Blumenkrantz f4b8e9563c apply pointer warp effects immediately when instant warping
fix T1462
2014-11-28 15:06:47 -05:00
Daniel Kolesa 245d26c7c7 detab e_start_main.c; spank spank spank 2014-11-28 15:08:24 +00:00