aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2015-06-05 15:35:21 -0400
committerKen Moore <ken@pcbsd.org>2015-06-05 15:35:21 -0400
commit0a426ea2f51b8500005dfdbcafb9a43d8e9e9bca (patch)
tree17a15c5628bd2ee74330f1d2a0e1f703021d232e /lumina-desktop/LSession.cpp
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-0a426ea2f51b8500005dfdbcafb9a43d8e9e9bca.tar.gz
lumina-0a426ea2f51b8500005dfdbcafb9a43d8e9e9bca.tar.bz2
lumina-0a426ea2f51b8500005dfdbcafb9a43d8e9e9bca.zip
Finish up the desktop re-scaling routines for ensure the same interface if you switch out monitors/systems with a different resolution. Also add a quick check to ensure that we don't create duplicate desktops in the same location on the X screen.
Diffstat (limited to 'lumina-desktop/LSession.cpp')
-rw-r--r--lumina-desktop/LSession.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index 5866b19d..342f509a 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -420,7 +420,8 @@ void LSession::updateDesktops(){
for(int i=0; i<DW->screenCount(); i++){
bool found = false;
for(int j=0; j<DESKTOPS.length() && !found; j++){
- if(DESKTOPS[j]->Screen()==i){ found = true; }
+ //Match either the screen number or the screen location (preventing duplicates)
+ if(DESKTOPS[j]->Screen()==i || DW->screenGeometry(i)==DW->screenGeometry(DESKTOPS[j]->Screen()) ){ found = true; }
}
if(!found){
//Start the desktop on the new screen
bgstack15